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 Details

    • AnnotationBasedFactory

      public AnnotationBasedFactory()
  • Method Details

    • signalScanCompletion

      protected void signalScanCompletion(boolean succeeded)
    • blockWhileScanning

      protected void blockWhileScanning()
      Wait for completion of annotation scanning
    • 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:
    • getScanFailureHandler

      protected io.github.classgraph.ClassGraph.FailureHandler getScanFailureHandler()