|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.felix.ipojo.Handler
org.apache.felix.ipojo.PrimitiveHandler
org.apache.felix.ipojo.handler.event.EventAdminSubscriberHandler
public class EventAdminSubscriberHandler
Event Subscriber Handler.
| Field Summary | |
|---|---|
static java.lang.String |
NAMESPACE
Handler Namespace. |
| Fields inherited from class org.apache.felix.ipojo.PrimitiveHandler |
|---|
HANDLER_TYPE |
| Fields inherited from class org.apache.felix.ipojo.Handler |
|---|
HANDLER_LEVEL_PROPERTY, HANDLER_NAME_PROPERTY, HANDLER_NAMESPACE_PROPERTY, HANDLER_TYPE_PROPERTY, m_instance, m_isValid |
| Constructor Summary | |
|---|---|
EventAdminSubscriberHandler()
|
|
| Method Summary | |
|---|---|
void |
configure(org.apache.felix.ipojo.metadata.Element metadata,
java.util.Dictionary conf)
Constructor. |
void |
handleEvent(org.osgi.service.event.Event event)
Receive an event. |
void |
initializeComponentFactory(org.apache.felix.ipojo.architecture.ComponentTypeDescription cd,
org.apache.felix.ipojo.metadata.Element metadata)
Initialize the component type. |
void |
start()
Handler start method. |
void |
stateChanged(int state)
Handler state change method. |
void |
stop()
The stop method of a handler. |
| Methods inherited from class org.apache.felix.ipojo.PrimitiveHandler |
|---|
attach, getFactory, getHandler, getInstanceManager, getLogger, getMetadata, getPojoMetadata, onCreation, onEntry, onError, onExit, onFinally, onGet, onSet, setFactory |
| Methods inherited from class org.apache.felix.ipojo.Handler |
|---|
error, error, getDescription, getHandlerManager, getValidity, info, isValid, reconfigure, setValidity, warn, warn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NAMESPACE
| Constructor Detail |
|---|
public EventAdminSubscriberHandler()
| Method Detail |
|---|
public void initializeComponentFactory(org.apache.felix.ipojo.architecture.ComponentTypeDescription cd,
org.apache.felix.ipojo.metadata.Element metadata)
throws org.apache.felix.ipojo.ConfigurationException
initializeComponentFactory in class org.apache.felix.ipojo.Handlercd - : component type description to populate.metadata - : component type metadata.
org.apache.felix.ipojo.ConfigurationException - : metadata are incorrect.org.apache.felix.ipojo.Handler#initializeComponentFactory(org.apache.felix.ipojo.architecture.ComponentDescription, org.apache.felix.ipojo.metadata.Element)
public void configure(org.apache.felix.ipojo.metadata.Element metadata,
java.util.Dictionary conf)
throws org.apache.felix.ipojo.ConfigurationException
configure in class org.apache.felix.ipojo.Handlermetadata - : component type metadataconf - : instance configuration
org.apache.felix.ipojo.ConfigurationException - : one event subscription is not correctorg.apache.felix.ipojo.Handler#configure(org.apache.felix.ipojo.InstanceManager, org.apache.felix.ipojo.metadata.Element, java.util.Dictionary)public void start()
start in class org.apache.felix.ipojo.HandlerHandler.start()public void stateChanged(int state)
stateChanged in class org.apache.felix.ipojo.Handlerstate - : new stateHandler.stateChanged(int)public void handleEvent(org.osgi.service.event.Event event)
handleEvent in interface org.osgi.service.event.EventHandlerevent - : the received event.EventHandler.handleEvent(org.osgi.service.event.Event)public void stop()
stop in class org.apache.felix.ipojo.HandlerHandler.stop()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||