|
||||||||||
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.publisher.EventAdminPublisherHandler
public class EventAdminPublisherHandler
Event Publisher Handler.
Field Summary | |
---|---|
static String |
NAMESPACE
The handler Namespace. |
static String |
TOPICS_PROPERTY
The names of instance configuration properties. |
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 | |
---|---|
EventAdminPublisherHandler()
|
Method Summary | |
---|---|
void |
configure(Element metadata,
Dictionary conf)
Constructor. |
EventAdmin |
getEventAdminService()
This method is called by managed publishers to obtain the current EventAdmin service. |
void |
initializeComponentFactory(ComponentTypeDescription cd,
Element metadata)
Initializes the component type. |
Object |
onGet(Object pojo,
String fieldName,
Object value)
Field interceptor callback. |
void |
start()
Starts the handler instance. |
void |
stop()
Stops the handler instance. |
Methods inherited from class org.apache.felix.ipojo.PrimitiveHandler |
---|
attach, getFactory, getHandler, getInstanceManager, getLogger, getPojoMetadata, onCreation, onEntry, onError, onExit, onFinally, 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
Constructor Detail |
---|
public EventAdminPublisherHandler()
Method Detail |
---|
public void initializeComponentFactory(ComponentTypeDescription cd, Element metadata) throws ConfigurationException
initializeComponentFactory
in class Handler
cd
- the component type description to populatemetadata
- the component type metadata
ConfigurationException
- if the given metadata is 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 component type metadataconf
- the instance configuration
ConfigurationException
- if one event publication 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
public void stop()
stop
in class Handler
public Object onGet(Object pojo, String fieldName, Object value)
onGet
in interface FieldInterceptor
onGet
in class PrimitiveHandler
pojo
- the accessed fieldfieldName
- the name of the accessed fieldvalue
- the value of the field (useless here)
public EventAdmin getEventAdminService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |