Class AnnotationBasedColumnCalloutFactory

java.lang.Object
org.adempiere.base.AnnotationBasedFactory
org.adempiere.base.AnnotationBasedColumnCalloutFactory
All Implemented Interfaces:
IColumnCalloutFactory
Direct Known Subclasses:
DefaultAnnotationBasedColumnCalloutFactory

public abstract class AnnotationBasedColumnCalloutFactory extends AnnotationBasedFactory implements IColumnCalloutFactory
Abstract base class for annotation driven implementation of IColumnCalloutFactory.
Subclass would override the getPackages() method to provide the packages for Callout annotation scanning and discovery.
Author:
hengsin
  • Constructor Details

    • AnnotationBasedColumnCalloutFactory

      public AnnotationBasedColumnCalloutFactory()
  • Method Details

    • getColumnCallouts

      public IColumnCallout[] getColumnCallouts(String tableName, String columnName)
      Specified by:
      getColumnCallouts in interface IColumnCalloutFactory
      Returns:
      array of matching callouts
    • getPackages

      protected abstract String[] getPackages()
      Subclasses must override this method in order to provide packages to scan, discover and register IColumnCallout 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
      Perform annotation scanning upon activation of component
      Parameters:
      context -
      Throws:
      ClassNotFoundException