Class SimpleEventHandler
- java.lang.Object
-
- org.adempiere.base.event.annotations.BaseEventHandler
-
- org.adempiere.base.event.annotations.SimpleEventHandler
-
- All Implemented Interfaces:
org.osgi.service.event.EventHandler
public final class SimpleEventHandler extends BaseEventHandler
Event handler that delegate toEventDelegate
instance (create for each event call)- Author:
- hengsin
-
-
Field Summary
-
Fields inherited from class org.adempiere.base.event.annotations.BaseEventHandler
eventTopicMap
-
-
Constructor Summary
Constructors Constructor Description SimpleEventHandler(Class<? extends EventDelegate> delegateClass, Function<org.osgi.service.event.Event,? extends EventDelegate> supplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EventDelegate
newEventDelegate(org.osgi.service.event.Event event)
create new instance of event delegate-
Methods inherited from class org.adempiere.base.event.annotations.BaseEventHandler
createTopicMap, getFilter, getTopics, handleEvent, setEventPropertyFilter, setFilter
-
-
-
-
Constructor Detail
-
SimpleEventHandler
public SimpleEventHandler(Class<? extends EventDelegate> delegateClass, Function<org.osgi.service.event.Event,? extends EventDelegate> supplier)
- Parameters:
delegateClass
-supplier
-
-
-
Method Detail
-
newEventDelegate
protected EventDelegate newEventDelegate(org.osgi.service.event.Event event)
Description copied from class:BaseEventHandler
create new instance of event delegate- Specified by:
newEventDelegate
in classBaseEventHandler
- Returns:
EventDelegate
-
-