Package org.adempiere.base
Class AnnotationBasedFactory
java.lang.Object
org.adempiere.base.AnnotationBasedFactory
- Direct Known Subclasses:
AnnotationBasedColumnCalloutFactory,AnnotationBasedEventManager,AnnotationBasedFormFactory,AnnotationBasedModelFactory,AnnotationBasedProcessFactory
Base class for factories that discover their classes by means of annotation scanning.
- Author:
- Saulo Gil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidWait for completion of annotation scanningprotected ExecutorServiceprotected intSuggests a maximum amount of threads to be allocated to annotation scanning for each individual factory.protected io.github.classgraph.ClassGraph.FailureHandlerprotected voidsignalScanCompletion(boolean succeeded)
-
Constructor Details
-
AnnotationBasedFactory
public AnnotationBasedFactory()
-
-
Method Details
-
signalScanCompletion
protected void signalScanCompletion(boolean succeeded) -
blockWhileScanning
protected void blockWhileScanning()Wait for completion of annotation scanning -
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:
-
executorServiceAdempiere.getThreadPoolExecutor()
-
getScanFailureHandler
protected io.github.classgraph.ClassGraph.FailureHandler getScanFailureHandler()
-