|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.InstanceManager
org.apache.felix.ipojo.HandlerManager
public class HandlerManager
The handler manager manages an handler instance.
Field Summary |
---|
Fields inherited from class org.apache.felix.ipojo.InstanceManager |
---|
m_className, m_handlers, m_listeners, m_name, m_state |
Fields inherited from interface org.apache.felix.ipojo.ComponentInstance |
---|
DISPOSED, INVALID, STOPPED, VALID |
Constructor Summary | |
---|---|
HandlerManager(ComponentFactory factory,
org.osgi.framework.BundleContext context,
HandlerManager[] handlers)
Constructor. |
Method Summary | |
---|---|
void |
dispose()
Dispose the instance. |
Handler |
getHandler()
Get the contained handler object. |
void |
init(ComponentInstance instance,
org.apache.felix.ipojo.metadata.Element metadata,
java.util.Dictionary configuration)
Create and initialize the handler object. |
protected void |
kill()
Kill the current instance. |
void |
start()
Start the instance manager. |
void |
stateChanged(ComponentInstance instance,
int newState)
State Change listener callback. |
void |
stop()
Stop the instance manager. |
Methods inherited from class org.apache.felix.ipojo.InstanceManager |
---|
addInstanceStateListener, configure, createPojoObject, getClassName, getClazz, getContext, getFactory, getFieldValue, getFieldValue, getGlobalContext, getHandler, getInstanceDescription, getInstanceName, getLocalServiceContext, getPojoObject, getPojoObjects, getRegistredFields, getRegistredHandlers, getRegistredMethods, getState, isStarted, onEntry, onError, onExit, onGet, onSet, reconfigure, register, register, register, removeInstanceStateListener, setState |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HandlerManager(ComponentFactory factory, org.osgi.framework.BundleContext context, HandlerManager[] handlers)
factory
- : handler factorycontext
- : bundle contexthandlers
- : handler arrayMethod Detail |
---|
public Handler getHandler()
public void init(ComponentInstance instance, org.apache.felix.ipojo.metadata.Element metadata, java.util.Dictionary configuration) throws ConfigurationException
instance
- : component instance on which the handler will be attached.metadata
- : component metadata.configuration
- : instance configuration.
ConfigurationException
- if the handler configuration failed.public void start()
start
in interface ComponentInstance
start
in class InstanceManager
public void stop()
stop
in interface ComponentInstance
stop
in class InstanceManager
public void dispose()
dispose
in interface ComponentInstance
dispose
in class InstanceManager
ComponentInstance.dispose()
protected void kill()
public void stateChanged(ComponentInstance instance, int newState)
stateChanged
in interface InstanceStateListener
stateChanged
in class InstanceManager
instance
- : changing instancenewState
- : new stateInstanceStateListener.stateChanged(org.apache.felix.ipojo.ComponentInstance, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |