Package org.adempiere.base
Class AnnotationBasedEventManager
- java.lang.Object
-
- org.adempiere.base.AnnotationBasedFactory
-
- org.adempiere.base.AnnotationBasedEventManager
-
- Direct Known Subclasses:
DefaultAnnotationBasedEventManager
public abstract class AnnotationBasedEventManager extends AnnotationBasedFactory
Scan, discover and register classes withEventTopicDelegate
annotation- Author:
- hengsin
-
-
Constructor Summary
Constructors Constructor Description AnnotationBasedEventManager()
default constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
activate(org.osgi.service.component.ComponentContext context)
protected void
bindService(IEventManager eventManager)
void
deactivate(org.osgi.service.component.ComponentContext context)
abstract String[]
getPackages()
Subclass would override this to define the list of packages to perform the scan, discover and register operationprotected void
scan()
Perform scan, discover and register of annotated classesprotected void
unbindService(IEventManager eventManager)
-
Methods inherited from class org.adempiere.base.AnnotationBasedFactory
blockWhileScanning, getExecutorService, getMaxThreads, getScanFailureHandler, signalScanCompletion
-
-
-
-
Method Detail
-
getPackages
public abstract String[] getPackages()
Subclass would override this to define the list of packages to perform the scan, discover and register operation- Returns:
- packages to scan
-
activate
public void activate(org.osgi.service.component.ComponentContext context)
-
deactivate
public void deactivate(org.osgi.service.component.ComponentContext context)
-
bindService
protected void bindService(IEventManager eventManager)
- Parameters:
eventManager
-
-
unbindService
protected void unbindService(IEventManager eventManager)
- Parameters:
eventManager
-
-
scan
protected void scan()
Perform scan, discover and register of annotated classes
-
-