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
Abstract base class for annotation driven implementation of
Subclass would override the
IColumnCalloutFactory
.Subclass would override the
getPackages()
method to provide the packages for Callout
annotation scanning and discovery.- Author:
- hengsin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate
(org.osgi.service.component.ComponentContext context) Perform annotation scanning upon activation of componentgetColumnCallouts
(String tableName, String columnName) protected abstract String[]
Subclasses must override this method in order to provide packages to scan, discover and registerIColumnCallout
classesMethods inherited from class org.adempiere.base.AnnotationBasedFactory
blockWhileScanning, getExecutorService, getMaxThreads, getScanFailureHandler, signalScanCompletion
-
Constructor Details
-
AnnotationBasedColumnCalloutFactory
public AnnotationBasedColumnCalloutFactory()
-
-
Method Details
-
getColumnCallouts
- Specified by:
getColumnCallouts
in interfaceIColumnCalloutFactory
- Returns:
- array of matching callouts
-
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 Perform annotation scanning upon activation of component- Parameters:
context
-- Throws:
ClassNotFoundException
-