Class ImportEventHandler
java.lang.Object
org.adempiere.base.event.annotations.BaseEventHandler
org.adempiere.base.event.annotations.imp.ImportEventHandler
- All Implemented Interfaces:
org.osgi.service.event.EventHandler
Event handler for import 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
ImportEventDelegate
and use import event topic annotation.- Author:
- hengsin
-
Field Summary
Fields inherited from class org.adempiere.base.event.annotations.BaseEventHandler
eventTopicMap
-
Constructor Summary
ConstructorDescriptionImportEventHandler
(Class<? extends ImportEventDelegate> delegateClass, String importTableName, Function<org.osgi.service.event.Event, ? extends ImportEventDelegate> 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
-
ImportEventHandler
public ImportEventHandler(Class<? extends ImportEventDelegate> delegateClass, String importTableName, Function<org.osgi.service.event.Event, ? extends ImportEventDelegate> supplier) - Parameters:
delegateClass
-importTableName
-supplier
-
-
-
Method Details
-
newEventDelegate
Description copied from class:BaseEventHandler
create new instance of event delegate- Specified by:
newEventDelegate
in classBaseEventHandler
- Returns:
- new
EventDelegate
instance
-