|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.composite.FactoryProxy
public class FactoryProxy
Bridge representing a Factory inside a composition.
Field Summary |
---|
Fields inherited from interface org.apache.felix.ipojo.Factory |
---|
INVALID, VALID |
Constructor Summary | |
---|---|
FactoryProxy(Factory fact,
ServiceContext svcContext)
Constructor. |
Method Summary | |
---|---|
void |
addFactoryStateListener(FactoryStateListener listener)
Add a factory listener. |
ComponentInstance |
createComponentInstance(Dictionary configuration)
Create an instance manager (i.e. |
ComponentInstance |
createComponentInstance(Dictionary configuration,
ServiceContext serviceContext)
Create an instance manager (i.e. |
BundleContext |
getBundleContext()
Gets the bundle context of the factory. |
String |
getClassName()
Returns the class name of the component type. |
ComponentTypeDescription |
getComponentDescription()
Gets the component type description. |
Element |
getDescription()
Get the component type information containing provided service, configuration properties ... |
List |
getMissingHandlers()
Gets the list of missing handlers. |
String |
getName()
Return the factory name. |
List |
getRequiredHandlers()
Get the list of required handlers. |
int |
getState()
Returns the state of the factory. |
String |
getVersion()
Gets the version of the component type. |
boolean |
isAcceptable(Dictionary conf)
Check if the given configuration is acceptable as a configuration of a component instance. |
void |
reconfigure(Dictionary conf)
Reconfigure an instance already created. |
void |
removeFactoryStateListener(FactoryStateListener listener)
Remove a service listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FactoryProxy(Factory fact, ServiceContext svcContext)
fact
- : the targeted factory.svcContext
- : the service context to target.Method Detail |
---|
public ComponentInstance createComponentInstance(Dictionary configuration) throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException
createComponentInstance
in interface Factory
configuration
- : the configuration properties for this component.
UnacceptableConfiguration
- : when a given configuration is not valid.
MissingHandlerException
- : occurs when the creation failed due to a missing handler (the factory should be invalid)
ConfigurationException
- : occurs when the creation failed due to a configuration issueFactory.createComponentInstance(java.util.Dictionary)
public ComponentInstance createComponentInstance(Dictionary configuration, ServiceContext serviceContext) throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException
createComponentInstance
in interface Factory
configuration
- : the configuration properties for this component.serviceContext
- : the service context of the component.
UnacceptableConfiguration
- : when the given configuration is not valid.
MissingHandlerException
- : when at least one handler is missing.
ConfigurationException
- : when an issue occurs during the oconfiguration of the instance.Factory.createComponentInstance(java.util.Dictionary, org.apache.felix.ipojo.ServiceContext)
public Element getDescription()
getDescription
in interface Factory
Factory.getDescription()
public String getName()
getName
in interface Factory
Factory.getName()
public boolean isAcceptable(Dictionary conf)
isAcceptable
in interface Factory
conf
- : the configuration to test
Factory.isAcceptable(java.util.Dictionary)
public void reconfigure(Dictionary conf) throws UnacceptableConfiguration, MissingHandlerException
reconfigure
in interface Factory
conf
- : the configuration to reconfigure the instance.
UnacceptableConfiguration
- : if the given configuration is not consistent for the targeted instance.
MissingHandlerException
- : when at least one handler is missingFactory.reconfigure(java.util.Dictionary)
public void addFactoryStateListener(FactoryStateListener listener)
addFactoryStateListener
in interface Factory
listener
- : the listener to add.Factory.addFactoryStateListener(org.apache.felix.ipojo.FactoryStateListener)
public List getMissingHandlers()
Factory
getMissingHandlers
in interface Factory
public List getRequiredHandlers()
Factory
getRequiredHandlers
in interface Factory
public void removeFactoryStateListener(FactoryStateListener listener)
removeFactoryStateListener
in interface Factory
listener
- : the listener to removeFactory.removeFactoryStateListener(org.apache.felix.ipojo.FactoryStateListener)
public ComponentTypeDescription getComponentDescription()
Factory
getComponentDescription
in interface Factory
public String getClassName()
Factory
getClassName
in interface Factory
public int getState()
Factory
getState
in interface Factory
public BundleContext getBundleContext()
Factory
getBundleContext
in interface Factory
public String getVersion()
Factory
getVersion
in interface Factory
null
if
not specified.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |