Package org.adempiere.base.event
Interface IEventManager
-
- All Known Implementing Classes:
EventManager
public interface IEventManager
- Author:
- hengsin
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLASS_NAME_PROPERTY
static String
EVENT_DATA
static String
EVENT_ERROR_MESSAGES
static String
IMPORT_TABLE_NAME_PROPERTY
static String
PROCESS_CLASS_NAME_PROPERTY
static String
PROCESS_UID_PROPERTY
static String
TABLE_NAME_PROPERTY
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
postEvent(org.osgi.service.event.Event event)
Initiate asynchronous delivery of an event.boolean
register(String[] topics, String filter, org.osgi.service.event.EventHandler eventHandler)
register a new event handlerboolean
register(String[] topics, org.osgi.service.event.EventHandler eventHandler)
register a new event handlerboolean
register(String topic, String filter, org.osgi.service.event.EventHandler eventHandler)
register a new event handlerboolean
register(String topic, org.osgi.service.event.EventHandler eventHandler)
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 Detail
-
EVENT_DATA
static final String EVENT_DATA
- See Also:
- Constant Field Values
-
EVENT_ERROR_MESSAGES
static final String EVENT_ERROR_MESSAGES
- See Also:
- Constant Field Values
-
IMPORT_TABLE_NAME_PROPERTY
static final String IMPORT_TABLE_NAME_PROPERTY
- See Also:
- Constant Field Values
-
TABLE_NAME_PROPERTY
static final String TABLE_NAME_PROPERTY
- See Also:
- Constant Field Values
-
PROCESS_UID_PROPERTY
static final String PROCESS_UID_PROPERTY
- See Also:
- Constant Field Values
-
CLASS_NAME_PROPERTY
static final String CLASS_NAME_PROPERTY
- See Also:
- Constant Field Values
-
PROCESS_CLASS_NAME_PROPERTY
static final String PROCESS_CLASS_NAME_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
boolean register(String topic, org.osgi.service.event.EventHandler eventHandler)
register a new event handler- Parameters:
topic
-eventHandler
-- Returns:
- true if registration is successful, false otherwise
-
register
boolean register(String[] topics, org.osgi.service.event.EventHandler eventHandler)
register a new event handler- Parameters:
topics
-eventHandler
-- Returns:
- true if registration is successful, false otherwise
-
register
boolean register(String topic, String filter, org.osgi.service.event.EventHandler eventHandler)
register a new event handler- Parameters:
topic
-filter
-eventHandler
-- Returns:
- true if registration is successful, false otherwise
-
register
boolean register(String[] topics, String filter, org.osgi.service.event.EventHandler eventHandler)
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
default boolean register(BaseEventHandler eventHandler)
- Parameters:
eventHandler
-- Returns:
-
-