Package org.adempiere.base
Class MappedColumnCalloutFactory
- java.lang.Object
-
- org.adempiere.base.MappedColumnCalloutFactory
-
- All Implemented Interfaces:
IColumnCalloutFactory
,IMappedColumnCalloutFactory
public class MappedColumnCalloutFactory extends Object implements IColumnCalloutFactory, IMappedColumnCalloutFactory
- Author:
- hengsin
-
-
Constructor Summary
Constructors Constructor Description MappedColumnCalloutFactory()
default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMapping(String tableName, String columnName, Supplier<IColumnCallout> supplier)
add mapping for calloutIColumnCallout[]
getColumnCallouts(String tableName, String columnName)
void
removeMapping(String tableName, String columnName, Supplier<IColumnCallout> supplier)
remove mapping for calloutvoid
scan(org.osgi.framework.BundleContext context, String... packages)
scan, discover and register classes with Callout annotation
-
-
-
Method Detail
-
getColumnCallouts
public IColumnCallout[] getColumnCallouts(String tableName, String columnName)
- Specified by:
getColumnCallouts
in interfaceIColumnCalloutFactory
- Returns:
- array of matching callouts
-
addMapping
public void addMapping(String tableName, String columnName, Supplier<IColumnCallout> supplier)
Description copied from interface:IMappedColumnCalloutFactory
add mapping for callout- Specified by:
addMapping
in interfaceIMappedColumnCalloutFactory
- Parameters:
tableName
- case insensitive table name or * to match all tablecolumnName
- case insensitive column name or * to match all columnsupplier
- supplier forIColumnCallout
instance
-
removeMapping
public void removeMapping(String tableName, String columnName, Supplier<IColumnCallout> supplier)
Description copied from interface:IMappedColumnCalloutFactory
remove mapping for callout- Specified by:
removeMapping
in interfaceIMappedColumnCalloutFactory
- Parameters:
tableName
- case insensitive table name or * to match all tablecolumnName
- case insensitive column name or * to match all columnsupplier
- supplier forIColumnCallout
instance
-
scan
public void scan(org.osgi.framework.BundleContext context, String... packages)
Description copied from interface:IMappedColumnCalloutFactory
scan, discover and register classes with Callout annotation- Specified by:
scan
in interfaceIMappedColumnCalloutFactory
-
-