|
||||||||||
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.handlers.event.subscriber.EventAdminSubscriberHandler
public class EventAdminSubscriberHandler
Event Subscriber Handler.
Field Summary | |
---|---|
static String |
FILTER_PROPERTY
The event's filter instance configuration property. |
static String |
NAMESPACE
The handler namespace. |
static String |
TOPICS_PROPERTY
The event's topics instance configuration property. |
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(Element metadata,
Dictionary conf)
Constructor. |
void |
handleEvent(Event event)
Receives an event. |
void |
initializeComponentFactory(ComponentTypeDescription cd,
Element metadata)
Initializes the component type. |
void |
start()
Handler start method. |
void |
stop()
Handler stop method. |
Methods inherited from class org.apache.felix.ipojo.PrimitiveHandler |
---|
attach, getConstructorParameter, getConstructorParameterType, getFactory, getHandler, getInstanceManager, getLogger, getPojoMetadata, onCreation, onEntry, onError, onExit, onFinally, onGet, onSet, setFactory |
Methods inherited from class org.apache.felix.ipojo.Handler |
---|
debug, error, error, getDescription, getHandlerManager, getValidity, info, isValid, reconfigure, setValidity, stateChanged, 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 String NAMESPACE
public static final String TOPICS_PROPERTY
public static final String FILTER_PROPERTY
Constructor Detail |
---|
public EventAdminSubscriberHandler()
Method Detail |
---|
public void initializeComponentFactory(ComponentTypeDescription cd, Element metadata) throws ConfigurationException
initializeComponentFactory
in class Handler
cd
- component type description to populate.metadata
- component type metadata.
ConfigurationException
- if the metadata are incorrect.org.apache.felix.ipojo.Handler#initializeComponentFactory(org.apache.felix.ipojo.architecture.ComponentDescription,
org.apache.felix.ipojo.metadata.Element)
public void configure(Element metadata, Dictionary conf) throws ConfigurationException
configure
in class Handler
metadata
- the omponent type metadataconf
- the instance configuration
ConfigurationException
- if 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 Handler
Handler.start()
public void stop()
stop
in class Handler
Handler.stop()
public void handleEvent(Event event)
handleEvent
in interface EventHandler
event
- the received event.EventHandler.handleEvent(org.osgi.service.event.Event)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |