|
||||||||||
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(org.apache.felix.ipojo.Factory fact,
org.apache.felix.ipojo.ServiceContext svcContext)
Constructor. |
Method Summary | |
---|---|
void |
addFactoryStateListener(org.apache.felix.ipojo.FactoryStateListener listener)
Add a factory listener. |
org.apache.felix.ipojo.ComponentInstance |
createComponentInstance(java.util.Dictionary configuration)
Create an instance manager (i.e. |
org.apache.felix.ipojo.ComponentInstance |
createComponentInstance(java.util.Dictionary configuration,
org.apache.felix.ipojo.ServiceContext serviceContext)
Create an instance manager (i.e. |
org.osgi.framework.BundleContext |
getBundleContext()
|
java.lang.String |
getClassName()
|
org.apache.felix.ipojo.architecture.ComponentTypeDescription |
getComponentDescription()
|
org.apache.felix.ipojo.metadata.Element |
getDescription()
Get the component type information containing provided service, configuration properties ... |
java.util.List |
getMissingHandlers()
|
java.lang.String |
getName()
Return the factory name. |
java.util.List |
getRequiredHandlers()
|
int |
getState()
|
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(org.apache.felix.ipojo.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(org.apache.felix.ipojo.Factory fact, org.apache.felix.ipojo.ServiceContext svcContext)
fact
- : the targeted factory.svcContext
- : the service context to target.Method Detail |
---|
public org.apache.felix.ipojo.ComponentInstance createComponentInstance(java.util.Dictionary configuration) throws org.apache.felix.ipojo.UnacceptableConfiguration, org.apache.felix.ipojo.MissingHandlerException, org.apache.felix.ipojo.ConfigurationException
createComponentInstance
in interface org.apache.felix.ipojo.Factory
configuration
- : the configuration properties for this component.
org.apache.felix.ipojo.UnacceptableConfiguration
- : when a given configuration is not valid.
org.apache.felix.ipojo.MissingHandlerException
- : occurs when the creation failed due to a missing handler (the factory should be invalid)
org.apache.felix.ipojo.ConfigurationException
- : occurs when the creation failed due to a configuration issueFactory.createComponentInstance(java.util.Dictionary)
public org.apache.felix.ipojo.ComponentInstance createComponentInstance(java.util.Dictionary configuration, org.apache.felix.ipojo.ServiceContext serviceContext) throws org.apache.felix.ipojo.UnacceptableConfiguration, org.apache.felix.ipojo.MissingHandlerException, org.apache.felix.ipojo.ConfigurationException
createComponentInstance
in interface org.apache.felix.ipojo.Factory
configuration
- : the configuration properties for this component.serviceContext
- : the service context of the component.
org.apache.felix.ipojo.UnacceptableConfiguration
- : when the given configuration is not valid.
org.apache.felix.ipojo.MissingHandlerException
- : when at least one handler is missing.
org.apache.felix.ipojo.ConfigurationException
- : when an issue occurs during the oconfiguration of the instance.Factory.createComponentInstance(java.util.Dictionary, org.apache.felix.ipojo.ServiceContext)
public org.apache.felix.ipojo.metadata.Element getDescription()
getDescription
in interface org.apache.felix.ipojo.Factory
Factory.getDescription()
public java.lang.String getName()
getName
in interface org.apache.felix.ipojo.Factory
Factory.getName()
public boolean isAcceptable(java.util.Dictionary conf)
isAcceptable
in interface org.apache.felix.ipojo.Factory
conf
- : the configuration to test
Factory.isAcceptable(java.util.Dictionary)
public void reconfigure(java.util.Dictionary conf) throws org.apache.felix.ipojo.UnacceptableConfiguration, org.apache.felix.ipojo.MissingHandlerException
reconfigure
in interface org.apache.felix.ipojo.Factory
conf
- : the configuration to reconfigure the instance.
org.apache.felix.ipojo.UnacceptableConfiguration
- : if the given configuration is not consistent for the targeted instance.
org.apache.felix.ipojo.MissingHandlerException
- : when at least one handler is missingFactory.reconfigure(java.util.Dictionary)
public void addFactoryStateListener(org.apache.felix.ipojo.FactoryStateListener listener)
addFactoryStateListener
in interface org.apache.felix.ipojo.Factory
listener
- : the listener to add.Factory.addFactoryStateListener(org.apache.felix.ipojo.FactoryStateListener)
public java.util.List getMissingHandlers()
getMissingHandlers
in interface org.apache.felix.ipojo.Factory
public java.util.List getRequiredHandlers()
getRequiredHandlers
in interface org.apache.felix.ipojo.Factory
public void removeFactoryStateListener(org.apache.felix.ipojo.FactoryStateListener listener)
removeFactoryStateListener
in interface org.apache.felix.ipojo.Factory
listener
- : the listener to removeFactory.removeFactoryStateListener(org.apache.felix.ipojo.FactoryStateListener)
public org.apache.felix.ipojo.architecture.ComponentTypeDescription getComponentDescription()
getComponentDescription
in interface org.apache.felix.ipojo.Factory
public java.lang.String getClassName()
getClassName
in interface org.apache.felix.ipojo.Factory
public int getState()
getState
in interface org.apache.felix.ipojo.Factory
public org.osgi.framework.BundleContext getBundleContext()
getBundleContext
in interface org.apache.felix.ipojo.Factory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |