Class ProcessEventHandler
java.lang.Object
org.adempiere.base.event.annotations.BaseEventHandler
org.adempiere.base.event.annotations.process.ProcessEventHandler
- All Implemented Interfaces:
org.osgi.service.event.EventHandler
Event handle for process related event.
Developers usually don't have to use this class directly; instead, the recommended approach is to subclass
Developers usually don't have to use this class directly; instead, the recommended approach is to subclass
ProcessEventDelegate
and use process event topic annotations.- Author:
- hengsin
-
Field Summary
Fields inherited from class org.adempiere.base.event.annotations.BaseEventHandler
eventTopicMap
-
Constructor Summary
ConstructorDescriptionProcessEventHandler
(Class<? extends ProcessEventDelegate> delegateClass, String processUUID, Function<org.osgi.service.event.Event, ? extends ProcessEventDelegate> supplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected EventDelegate
newEventDelegate
(org.osgi.service.event.Event event) create new instance of event delegateMethods inherited from class org.adempiere.base.event.annotations.BaseEventHandler
createTopicMap, getDelegateClass, getFilter, getTopics, handleEvent, setEventPropertyFilter, setFilter
-
Constructor Details
-
ProcessEventHandler
public ProcessEventHandler(Class<? extends ProcessEventDelegate> delegateClass, String processUUID, Function<org.osgi.service.event.Event, ? extends ProcessEventDelegate> supplier) - Parameters:
delegateClass
-processUUID
- filter by process uuid (null for all process)supplier
-
-
-
Method Details
-
newEventDelegate
Description copied from class:BaseEventHandler
create new instance of event delegate- Specified by:
newEventDelegate
in classBaseEventHandler
- Returns:
- new
EventDelegate
instance
-