|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.IPojoFactory
org.apache.felix.ipojo.ComponentFactory
org.apache.felix.ipojo.HandlerManagerFactory
public class HandlerManagerFactory
Implementation of the handler factory interface. This factory is able to create handler manager. A handler manager is an iPOJO instance containing a handler object.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.felix.ipojo.IPojoFactory |
---|
IPojoFactory.RequiredHandler |
Field Summary |
---|
Fields inherited from class org.apache.felix.ipojo.ComponentFactory |
---|
HANDLER_AUTO_PRIMITIVE, m_tracker |
Fields inherited from class org.apache.felix.ipojo.IPojoFactory |
---|
INSTANCE_NAME, m_componentDesc, m_componentInstances, m_componentMetadata, m_context, m_factoryName, m_isPublic, m_listeners, m_logger, m_requiredHandlers, m_sr, m_state, m_version |
Fields inherited from interface org.apache.felix.ipojo.HandlerFactory |
---|
IPOJO_NAMESPACE |
Fields inherited from interface org.apache.felix.ipojo.Factory |
---|
INVALID, VALID |
Constructor Summary | |
---|---|
HandlerManagerFactory(BundleContext context,
Element metadata)
Creates a handler factory. |
Method Summary | |
---|---|
ComponentInstance |
createInstance(Dictionary configuration,
IPojoContext context,
HandlerManager[] handlers)
Creates an instance. |
ComponentTypeDescription |
getComponentTypeDescription()
Gets the component type description of the current factory. |
String |
getHandlerName()
Gets the name associated with this handler factory. |
String |
getNamespace()
Gets the namespace associated with this handler factory. |
List |
getRequiredHandlerList()
Computes required handlers. |
int |
getStartLevel()
Gets the start level of the handler objects created by this factory. |
String |
getType()
Gets the type of the handler factory. |
void |
stopping()
Stops the factory. |
Methods inherited from class org.apache.felix.ipojo.ComponentFactory |
---|
addedService, addingService, check, defineClass, getBundleClassLoader, getClassName, getFactoryName, getPojoMetadata, getResource, getVersion, loadClass, modifiedService, removedService, starting |
Methods inherited from class org.apache.felix.ipojo.IPojoFactory |
---|
addFactoryStateListener, checkAcceptability, computeDescription, computeFactoryState, createComponentInstance, createComponentInstance, deleted, disposed, generateName, getBundleContext, getComponentDescription, getDescription, getHandler, getIPOJOBundleContext, getLogger, getMissingHandlers, getName, getRequiredHandlers, getState, isAcceptable, match, reconfigure, removeFactoryStateListener, restart, start, stop, updated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.felix.ipojo.Factory |
---|
addFactoryStateListener, createComponentInstance, createComponentInstance, getBundleContext, getClassName, getComponentDescription, getDescription, getMissingHandlers, getName, getRequiredHandlers, getState, getVersion, isAcceptable, reconfigure, removeFactoryStateListener |
Constructor Detail |
---|
public HandlerManagerFactory(BundleContext context, Element metadata) throws ConfigurationException
context
- the bundle contextmetadata
- the metadata of the component to create
ConfigurationException
- if the element describing the factory is malformed.Method Detail |
---|
public String getNamespace()
HandlerFactory
getNamespace
in interface HandlerFactory
public String getHandlerName()
HandlerFactory
getHandlerName
in interface HandlerFactory
public String getType()
HandlerFactory
primitive
and composite
.
getType
in interface HandlerFactory
public int getStartLevel()
HandlerFactory
getStartLevel
in interface HandlerFactory
public ComponentTypeDescription getComponentTypeDescription()
ComponentFactory
getComponentTypeDescription
in class ComponentFactory
IPojoFactory.getComponentTypeDescription()
public void stopping()
stopping
in class ComponentFactory
public ComponentInstance createInstance(Dictionary configuration, IPojoContext context, HandlerManager[] handlers) throws ConfigurationException
createInstance
in class ComponentFactory
configuration
- the configuration of the created instance.context
- the service context to push for this instance.handlers
- the handler array to attach to the instance.
HandlerManager
.
ConfigurationException
- if the instance configuration failed.Factory.createComponentInstance(java.util.Dictionary)
public List getRequiredHandlerList()
getRequiredHandlerList
in class ComponentFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |