|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.api.ComponentType
org.apache.felix.ipojo.api.composite.CompositeComponentType
public class CompositeComponentType
Allows defining composite types.
Constructor Summary | |
---|---|
CompositeComponentType()
|
Method Summary | |
---|---|
CompositeComponentType |
addHandler(HandlerConfiguration handler)
Adds an HandlerConfiguration to the component type. |
CompositeComponentType |
addInstance(Instance inst)
Adds a contained instance. |
CompositeComponentType |
addService(ExportedService es)
Adds an exported service. |
CompositeComponentType |
addService(ProvidedService es)
Adds a provided service. |
CompositeComponentType |
addSubService(ImportedService is)
Adds an imported (sub-)service. |
CompositeComponentType |
addSubService(InstantiatedService is)
Adds an instantiated sub-service. |
Factory |
getFactory()
Gets the component factory. |
CompositeComponentType |
setBundleContext(BundleContext bc)
Sets the bundle context. |
CompositeComponentType |
setComponentTypeName(String name)
Sets the component type name. |
CompositeComponentType |
setComponentTypeVersion(String version)
Sets the component type version. |
CompositeComponentType |
setPublic(boolean visible)
Sets the factory public aspect. |
void |
start()
Starts the component type. |
void |
stop()
Stops the component type. |
Methods inherited from class org.apache.felix.ipojo.api.ComponentType |
---|
createInstance, createInstance, createInstance, disposeInstance, disposeInstance, getInstanceByName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeComponentType()
Method Detail |
---|
public Factory getFactory()
getFactory
in class ComponentType
ComponentType.getFactory()
public void start()
start
in class ComponentType
ComponentType.start()
public void stop()
stop
in class ComponentType
ComponentType.stop()
public CompositeComponentType setBundleContext(BundleContext bc)
bc
- the bundle context
public CompositeComponentType setPublic(boolean visible)
visible
- false
to create a private factory.
public CompositeComponentType setComponentTypeName(String name)
name
- the factory name
public CompositeComponentType setComponentTypeVersion(String version)
version
- the factory version or "bundle" to use the
bundle version.
public CompositeComponentType addInstance(Instance inst)
inst
- the instance to add
public CompositeComponentType addSubService(ImportedService is)
is
- the imported service to add
public CompositeComponentType addSubService(InstantiatedService is)
is
- the instantiated service to add
public CompositeComponentType addService(ExportedService es)
es
- the exported service to add
public CompositeComponentType addService(ProvidedService es)
es
- the provided service to add
public CompositeComponentType addHandler(HandlerConfiguration handler)
handler
- the handler configuration to add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |