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
Event handler that delegate to
This is use by
EventDelegate
instance (create for each event call).This is use by
AnnotationBasedEventManager
and usually developer doesn't have to use this class directly.- Author:
- hengsin
-
Field Summary
Fields inherited from class org.adempiere.base.event.annotations.BaseEventHandler
eventTopicMap
-
Constructor Summary
ConstructorDescriptionSimpleEventHandler
(Class<? extends EventDelegate> delegateClass, Function<org.osgi.service.event.Event, ? extends EventDelegate> 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
-
SimpleEventHandler
public SimpleEventHandler(Class<? extends EventDelegate> delegateClass, Function<org.osgi.service.event.Event, ? extends EventDelegate> supplier) - Parameters:
delegateClass
-supplier
-
-
-
Method Details
-
newEventDelegate
Description copied from class:BaseEventHandler
create new instance of event delegate- Specified by:
newEventDelegate
in classBaseEventHandler
- Returns:
- new
EventDelegate
instance
-