|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Factory
Component Type Factory Service. This service is exposed by a instance manager factory, and allows the dynamic creation of component instance.
Field Summary | |
---|---|
static int |
INVALID
Factory State. |
static int |
VALID
Factory State. |
Method Summary | |
---|---|
void |
addFactoryStateListener(FactoryStateListener listener)
Add a factory state listener on the current factory. |
ComponentInstance |
createComponentInstance(java.util.Dictionary configuration)
Create an instance manager (i.e. |
ComponentInstance |
createComponentInstance(java.util.Dictionary configuration,
ServiceContext serviceContext)
Create an instance manager (i.e. |
org.osgi.framework.BundleContext |
getBundleContext()
Get the bundle context of the factory. |
java.lang.String |
getClassName()
Return the classname of the component type. |
ComponentTypeDescription |
getComponentDescription()
Get the component type description. |
org.apache.felix.ipojo.metadata.Element |
getDescription()
Get the component type information containing provided service, configuration properties ... |
java.util.List |
getMissingHandlers()
Get the list of missing handlers. |
java.lang.String |
getName()
Return the factory name. |
java.util.List |
getRequiredHandlers()
Get the list of required handlers. |
int |
getState()
Return the state of the factory. |
boolean |
isAcceptable(java.util.Dictionary conf)
Check if the given configuration is acceptable as a configuration of a component instance. |
void |
reconfigure(java.util.Dictionary conf)
Reconfigure an instance already created. |
void |
removeFactoryStateListener(FactoryStateListener listener)
Remove the given factory state listener from the listener list. |
Field Detail |
---|
static final int VALID
static final int INVALID
Method Detail |
---|
ComponentInstance createComponentInstance(java.util.Dictionary configuration) throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException
configuration
- : the configuration properties for this component.
UnacceptableConfiguration
- : when a given configuration is not valid.
MissingHandlerException
- : when an handler is missing.
ConfigurationException
- : when the instance configuration failed.ComponentInstance createComponentInstance(java.util.Dictionary configuration, ServiceContext serviceContext) throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException
configuration
- : the configuration properties for this component.serviceContext
- : the service context of the component.
UnacceptableConfiguration
- : when the given configuration is not valid.
MissingHandlerException
- : when an handler is missing.
ConfigurationException
- : when the instance configuration failed.org.apache.felix.ipojo.metadata.Element getDescription()
ComponentTypeDescription getComponentDescription()
boolean isAcceptable(java.util.Dictionary conf)
conf
- : the configuration to test
java.lang.String getName()
void reconfigure(java.util.Dictionary conf) throws UnacceptableConfiguration, MissingHandlerException
conf
- : the configuration to reconfigure the instance.
UnacceptableConfiguration
- : if the given configuration is not consistent for the targeted instance.
MissingHandlerException
- : when an handler is missing.void addFactoryStateListener(FactoryStateListener listener)
listener
- : the listener to addvoid removeFactoryStateListener(FactoryStateListener listener)
listener
- : the listener to removejava.util.List getMissingHandlers()
java.util.List getRequiredHandlers()
java.lang.String getClassName()
int getState()
org.osgi.framework.BundleContext getBundleContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |