Package org.adempiere.base
Class AnnotationBasedFactory
- java.lang.Object
-
- org.adempiere.base.AnnotationBasedFactory
-
- Direct Known Subclasses:
AnnotationBasedColumnCalloutFactory
,AnnotationBasedEventManager
,AnnotationBasedFormFactory
,AnnotationBasedModelFactory
,AnnotationBasedProcessFactory
public abstract class AnnotationBasedFactory extends Object
Base class for factories that discover their classes by means of annotation scanning.- Author:
- Saulo Gil
-
-
Constructor Summary
Constructors Constructor Description AnnotationBasedFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
blockWhileScanning()
protected ExecutorService
getExecutorService()
protected int
getMaxThreads()
Suggests a maximum amount of threads to be allocated to annotation scanning for each individual factory.protected io.github.classgraph.ClassGraph.FailureHandler
getScanFailureHandler()
protected void
signalScanCompletion(boolean succeeded)
-
-
-
Method Detail
-
signalScanCompletion
protected void signalScanCompletion(boolean succeeded)
-
blockWhileScanning
protected void blockWhileScanning()
-
getExecutorService
protected ExecutorService getExecutorService()
-
getMaxThreads
protected int getMaxThreads()
Suggests a maximum amount of threads to be allocated to annotation scanning for each individual factory.- Returns:
- suggested maximum amount of threads
- See Also:
executorService
,Adempiere.getThreadPoolExecutor()
-
getScanFailureHandler
protected io.github.classgraph.ClassGraph.FailureHandler getScanFailureHandler()
-
-