Package org.adempiere.base
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
- Author:
- hengsin
-
-
Constructor Summary
Constructors Constructor Description AnnotationBasedColumnCalloutFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
activate(org.osgi.service.component.ComponentContext context)
IColumnCallout[]
getColumnCallouts(String tableName, String columnName)
protected abstract String[]
getPackages()
Subclasses must override this method in order to provide packages to scan, discover and registerIColumnCallout
classes-
Methods inherited from class org.adempiere.base.AnnotationBasedFactory
blockWhileScanning, getExecutorService, getMaxThreads, getScanFailureHandler, signalScanCompletion
-
-
-
-
Method Detail
-
getColumnCallouts
public IColumnCallout[] getColumnCallouts(String tableName, String columnName)
- Specified by:
getColumnCallouts
in interfaceIColumnCalloutFactory
- Returns:
- array of matching callouts
-
getPackages
protected abstract String[] getPackages()
Subclasses must override this method in order to provide packages to scan, discover and registerIColumnCallout
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
- Throws:
ClassNotFoundException
-
-