|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.handlers.event.publisher.PublisherImpl
public class PublisherImpl
The PublisherImpl class is the implementation of the Publisher object used by components to send events.
Field Summary | |
---|---|
static String |
INSTANCE_NAME_PROPERTY
The key where the component instance name is stored. |
Constructor Summary | |
---|---|
PublisherImpl(EventAdminPublisherHandler handler,
String[] topics,
boolean synchronous,
String dataKey,
String instanceName)
Constructs an Publisher with given parameters. |
Method Summary | |
---|---|
void |
send(Dictionary content)
Sends an event with the specified content. |
void |
sendData(Object object)
Sends a data event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String INSTANCE_NAME_PROPERTY
Constructor Detail |
---|
public PublisherImpl(EventAdminPublisherHandler handler, String[] topics, boolean synchronous, String dataKey, String instanceName)
handler
- the handler that will manage this publishertopics
- the topics on which events are sentsynchronous
- the sending mode of eventsdataKey
- The key, in the content of the event, where user data are
stored (may be null
)instanceName
- the name of the instance creating this publisher.Method Detail |
---|
public void send(Dictionary content)
send
in interface Publisher
content
- the content of the eventpublic void sendData(Object object)
sendData
in interface Publisher
object
- the data to send
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |