public class CompositeComponentType extends ComponentType
| Constructor and Description |
|---|
CompositeComponentType() |
| Modifier and Type | Method and Description |
|---|---|
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(org.osgi.framework.BundleContext bc)
Sets the bundle context.
|
CompositeComponentType |
setComponentTypeName(java.lang.String name)
Sets the component type name.
|
CompositeComponentType |
setComponentTypeVersion(java.lang.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.
|
createInstance, createInstance, createInstance, disposeInstance, disposeInstance, getInstanceByNamepublic Factory getFactory()
getFactory in class ComponentTypeComponentType.getFactory()public void start()
start in class ComponentTypeComponentType.start()public void stop()
stop in class ComponentTypeComponentType.stop()public CompositeComponentType setBundleContext(org.osgi.framework.BundleContext bc)
bc - the bundle contextpublic CompositeComponentType setPublic(boolean visible)
visible - false to create a private factory.public CompositeComponentType setComponentTypeName(java.lang.String name)
name - the factory namepublic CompositeComponentType setComponentTypeVersion(java.lang.String version)
version - the factory version or "bundle" to use the
bundle version.public CompositeComponentType addInstance(Instance inst)
inst - the instance to addpublic CompositeComponentType addSubService(ImportedService is)
is - the imported service to addpublic CompositeComponentType addSubService(InstantiatedService is)
is - the instantiated service to addpublic CompositeComponentType addService(ExportedService es)
es - the exported service to addpublic CompositeComponentType addService(ProvidedService es)
es - the provided service to addpublic CompositeComponentType addHandler(HandlerConfiguration handler)
handler - the handler configuration to addCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.