public class CommandFactory
extends org.apache.felix.ipojo.IPojoFactory
implements org.apache.felix.ipojo.util.TrackerCustomizer
command @action
completer @component {multiple}
| Constructor and Description |
|---|
CommandFactory(org.osgi.framework.BundleContext context,
org.apache.felix.ipojo.metadata.Element metadata)
Creates an iPOJO Factory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addedService(org.osgi.framework.ServiceReference reference) |
boolean |
addingService(org.osgi.framework.ServiceReference reference) |
org.apache.felix.ipojo.ComponentInstance |
createInstance(Dictionary config,
org.apache.felix.ipojo.IPojoContext context,
org.apache.felix.ipojo.HandlerManager[] handlers)
Creates an instance.
|
String |
getClassName()
Gets the factory class name.
|
org.apache.felix.ipojo.metadata.Element |
getDescription() |
String |
getFactoryName()
Computes the factory name.
|
List |
getRequiredHandlerList()
Computes the required handler list.
|
String |
getVersion()
Gets the version of the component type.
|
void |
modifiedService(org.osgi.framework.ServiceReference reference,
Object service) |
void |
removedService(org.osgi.framework.ServiceReference reference,
Object service) |
void |
starting()
Starting method.
|
void |
stopping()
Stopping method.
|
addFactoryStateListener, checkAcceptability, computeDescription, computeFactoryState, createComponentInstance, createComponentInstance, deleted, disposed, generateName, getBundleContext, getComponentDescription, getComponentMetadata, getComponentTypeDescription, getHandler, getIPOJOBundleContext, getLogger, getMissingHandlers, getName, getRequiredHandlers, getState, isAcceptable, match, reconfigure, removeFactoryStateListener, restart, start, stop, updatedpublic CommandFactory(org.osgi.framework.BundleContext context,
org.apache.felix.ipojo.metadata.Element metadata)
throws org.apache.felix.ipojo.ConfigurationException
context - the bundle context of the bundle containing the factory.metadata - the description of the component type.org.apache.felix.ipojo.ConfigurationException - if the element describing the factory is malformed.public String getFactoryName()
getFactoryName in class org.apache.felix.ipojo.IPojoFactorypublic org.apache.felix.ipojo.metadata.Element getDescription()
getDescription in interface org.apache.felix.ipojo.FactorygetDescription in class org.apache.felix.ipojo.IPojoFactorypublic List getRequiredHandlerList()
getRequiredHandlerList in class org.apache.felix.ipojo.IPojoFactorypublic org.apache.felix.ipojo.ComponentInstance createInstance(Dictionary config, org.apache.felix.ipojo.IPojoContext context, org.apache.felix.ipojo.HandlerManager[] handlers) throws org.apache.felix.ipojo.ConfigurationException
createInstance in class org.apache.felix.ipojo.IPojoFactoryconfig - the instance configurationcontext - the iPOJO context to usehandlers - the handler array to useorg.apache.felix.ipojo.ConfigurationException - if the instance creation failed during the configuration process.public String getClassName()
getClassName in interface org.apache.felix.ipojo.FactorygetClassName in class org.apache.felix.ipojo.IPojoFactoryFactory.getClassName()public String getVersion()
getVersion in interface org.apache.felix.ipojo.Factorynull if
not specified.public void stopping()
stopping in class org.apache.felix.ipojo.IPojoFactorypublic void starting()
starting in class org.apache.felix.ipojo.IPojoFactorypublic boolean addingService(org.osgi.framework.ServiceReference reference)
addingService in interface org.apache.felix.ipojo.util.TrackerCustomizerpublic void addedService(org.osgi.framework.ServiceReference reference)
addedService in interface org.apache.felix.ipojo.util.TrackerCustomizerpublic void modifiedService(org.osgi.framework.ServiceReference reference,
Object service)
modifiedService in interface org.apache.felix.ipojo.util.TrackerCustomizerpublic void removedService(org.osgi.framework.ServiceReference reference,
Object service)
removedService in interface org.apache.felix.ipojo.util.TrackerCustomizerCopyright © 2013 OW2 Consortium. All Rights Reserved.