|
||||||||||
| 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()
|
String |
getClassName()
|
ComponentTypeDescription |
getComponentDescription()
|
Element |
getDescription()
Get the component type information containing provided service, configuration properties ... |
List |
getMissingHandlers()
|
String |
getName()
Return the factory name. |
List |
getRequiredHandlers()
|
int |
getState()
|
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 Factoryconfiguration - : 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 Factoryconfiguration - : 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 FactoryFactory.getDescription()public String getName()
getName in interface FactoryFactory.getName()public boolean isAcceptable(Dictionary conf)
isAcceptable in interface Factoryconf - : the configuration to test
Factory.isAcceptable(java.util.Dictionary)
public void reconfigure(Dictionary conf)
throws UnacceptableConfiguration,
MissingHandlerException
reconfigure in interface Factoryconf - : 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 Factorylistener - : the listener to add.Factory.addFactoryStateListener(org.apache.felix.ipojo.FactoryStateListener)public List getMissingHandlers()
getMissingHandlers in interface Factorypublic List getRequiredHandlers()
getRequiredHandlers in interface Factorypublic void removeFactoryStateListener(FactoryStateListener listener)
removeFactoryStateListener in interface Factorylistener - : the listener to removeFactory.removeFactoryStateListener(org.apache.felix.ipojo.FactoryStateListener)public ComponentTypeDescription getComponentDescription()
getComponentDescription in interface Factorypublic String getClassName()
getClassName in interface Factorypublic int getState()
getState in interface Factorypublic BundleContext getBundleContext()
getBundleContext in interface Factory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||