|
||||||||||
| 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 | |
|---|---|
private ServiceContext |
m_context
Destination context. |
private Factory |
m_delegate
Delegated factory. |
| 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(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()
Gets the bundle context of the factory. |
java.lang.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 ... |
java.util.List |
getMissingHandlers()
Gets 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()
Returns the state of the factory. |
java.lang.String |
getVersion()
Gets the version of the component type. |
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 a service listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Factory m_delegate
private ServiceContext m_context
| Constructor Detail |
|---|
public FactoryProxy(Factory fact,
ServiceContext svcContext)
fact - : the targeted factory.svcContext - : the service context to target.| Method Detail |
|---|
public ComponentInstance createComponentInstance(java.util.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(java.util.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 java.lang.String getName()
getName in interface FactoryFactory.getName()public boolean isAcceptable(java.util.Dictionary conf)
isAcceptable in interface Factoryconf - : the configuration to test
Factory.isAcceptable(java.util.Dictionary)
public void reconfigure(java.util.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 java.util.List getMissingHandlers()
Factory
getMissingHandlers in interface Factorypublic java.util.List getRequiredHandlers()
Factory
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()
Factory
getComponentDescription in interface Factorypublic java.lang.String getClassName()
Factory
getClassName in interface Factorypublic int getState()
Factory
getState in interface Factorypublic org.osgi.framework.BundleContext getBundleContext()
Factory
getBundleContext in interface Factorypublic java.lang.String getVersion()
Factory
getVersion in interface Factorynull if
not specified.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||