Package org.adempiere.base.event
Class EventHelper
java.lang.Object
org.adempiere.base.event.EventHelper
Helper methods for
AbstractEventHandler
.- Author:
- hengsin
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
addErrorMessage
(org.osgi.service.event.Event event, String errorMessage) static <T> T
getEventData
(org.osgi.service.event.Event event) static <T> T
getEventProperty
(org.osgi.service.event.Event event, String property) static PO
getPO
(org.osgi.service.event.Event event) static ProcessInfo
getProcessInfo
(org.osgi.service.event.Event event)
-
Method Details
-
getPO
- Parameters:
event
-- Returns:
- PO
-
getProcessInfo
- Parameters:
event
-- Returns:
- ProcessInfo
-
getEventData
public static <T> T getEventData(org.osgi.service.event.Event event) - Type Parameters:
T
-- Parameters:
event
-
-
getEventProperty
- Type Parameters:
T
-- Parameters:
event
-property
-
-
addError
- Parameters:
event
-e
-
-
addErrorMessage
- Parameters:
event
-errorMessage
-
-