Package org.adempiere.base.event
Interface IEventManager
- All Known Implementing Classes:
EventManager
public interface IEventManager
Interface for global event manager
- Author:
- hengsin
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
postEvent
(org.osgi.service.event.Event event) Initiate asynchronous delivery of an event.boolean
register a new event handlerboolean
register a new event handlerboolean
register a new event handlerboolean
register a new event handlerdefault boolean
register
(BaseEventHandler eventHandler) boolean
sendEvent
(org.osgi.service.event.Event event) Initiate synchronous delivery of an event.boolean
unregister
(org.osgi.service.event.EventHandler eventHandler) un-register an event handler
-
Field Details
-
EVENT_CONTEXT
- See Also:
-
EVENT_DATA
- See Also:
-
EVENT_ERROR_MESSAGES
- See Also:
-
IMPORT_TABLE_NAME_PROPERTY
- See Also:
-
TABLE_NAME_PROPERTY
- See Also:
-
PROCESS_UID_PROPERTY
- See Also:
-
CLASS_NAME_PROPERTY
- See Also:
-
PROCESS_CLASS_NAME_PROPERTY
- See Also:
-
-
Method Details
-
postEvent
boolean postEvent(org.osgi.service.event.Event event) Initiate asynchronous delivery of an event. This method returns to the caller before delivery of the event is completed.- Parameters:
event
- The event to send to all listeners which subscribe to the topic of the event.- Throws:
SecurityException
- If the caller does not haveTopicPermission[topic,PUBLISH]
for the topic specified in the event.
-
sendEvent
boolean sendEvent(org.osgi.service.event.Event event) Initiate synchronous delivery of an event. This method does not return to the caller until delivery of the event is completed.- Parameters:
event
- The event to send to all listeners which subscribe to the topic of the event.- Throws:
SecurityException
- If the caller does not haveTopicPermission[topic,PUBLISH]
for the topic specified in the event.
-
register
register a new event handler- Parameters:
topic
-eventHandler
-- Returns:
- true if registration is successful, false otherwise
-
register
register a new event handler- Parameters:
topics
-eventHandler
-- Returns:
- true if registration is successful, false otherwise
-
register
register a new event handler- Parameters:
topic
-filter
-eventHandler
-- Returns:
- true if registration is successful, false otherwise
-
register
register a new event handler- Parameters:
topics
-filter
-eventHandler
-- Returns:
- true if registration is successful, false otherwise
-
unregister
boolean unregister(org.osgi.service.event.EventHandler eventHandler) un-register an event handler- Parameters:
eventHandler
-- Returns:
- true if unregistration is done, false otherwise
-
register
- Parameters:
eventHandler
-- Returns:
-