Package org.adempiere.base
Class AnnotationBasedProcessFactory
- java.lang.Object
-
- org.adempiere.base.AnnotationBasedFactory
-
- org.adempiere.base.AnnotationBasedProcessFactory
-
- All Implemented Interfaces:
IProcessFactory
- Direct Known Subclasses:
DefaultAnnotationBasedProcessFactory
,ProcessFactoryImpl
public abstract class AnnotationBasedProcessFactory extends AnnotationBasedFactory implements IProcessFactory
Scan, discover and register process classes. Process class will be registered using class name. You can use the optionalProcess
annotation to register a process class with an additional name (for e.g to replace a core process class).- Author:
- hengsin
-
-
Constructor Summary
Constructors Constructor Description AnnotationBasedProcessFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
activate(org.osgi.service.component.ComponentContext context)
protected abstract String[]
getPackages()
Subclasses must override this method in order to provide packages to scan, discover and register process classesProcessCall
newProcessInstance(String className)
Create new process instance-
Methods inherited from class org.adempiere.base.AnnotationBasedFactory
blockWhileScanning, getExecutorService, getMaxThreads, getScanFailureHandler, signalScanCompletion
-
-
-
-
Method Detail
-
getPackages
protected abstract String[] getPackages()
Subclasses must override this method in order to provide packages to scan, discover and register process classes- Returns:
- array of packages to be accepted during class scanning
- See Also:
ClassGraph.acceptPackagesNonRecursive(String...)
-
activate
public void activate(org.osgi.service.component.ComponentContext context) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
newProcessInstance
public ProcessCall newProcessInstance(String className)
Description copied from interface:IProcessFactory
Create new process instance- Specified by:
newProcessInstance
in interfaceIProcessFactory
- Returns:
- new process instance
-
-