Package org.adempiere.base.event
Class EventHelper
- java.lang.Object
-
- org.adempiere.base.event.EventHelper
-
public final class EventHelper extends Object
Helper methods for event handler- Author:
- hengsin
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addError(org.osgi.service.event.Event event, Throwable e)
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 Detail
-
getPO
public static PO getPO(org.osgi.service.event.Event event)
- Parameters:
event
-- Returns:
- PO
-
getProcessInfo
public static ProcessInfo getProcessInfo(org.osgi.service.event.Event event)
- Parameters:
event
-- Returns:
- ProcessInfo
-
getEventData
public static <T> T getEventData(org.osgi.service.event.Event event)
- Type Parameters:
T
-- Parameters:
event
-
-
getEventProperty
public static <T> T getEventProperty(org.osgi.service.event.Event event, String property)
- Type Parameters:
T
-- Parameters:
event
-property
-
-
addError
public static void addError(org.osgi.service.event.Event event, Throwable e)
- Parameters:
event
-e
-
-
addErrorMessage
public static void addErrorMessage(org.osgi.service.event.Event event, String errorMessage)
- Parameters:
event
-errorMessage
-
-
-