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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Wait for completion of annotation scanningprotected ExecutorService
protected int
Suggests a maximum amount of threads to be allocated to annotation scanning for each individual factory.protected io.github.classgraph.ClassGraph.FailureHandler
protected void
signalScanCompletion
(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:
-
executorService
Adempiere.getThreadPoolExecutor()
-
getScanFailureHandler
protected io.github.classgraph.ClassGraph.FailureHandler getScanFailureHandler()
-