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
Default implementation of
IMappedColumnCalloutFactory
for core.- Author:
- hengsin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMapping
(String tableName, String columnName, Supplier<IColumnCallout> supplier) add mapping for calloutgetColumnCallouts
(String tableName, String columnName) void
removeMapping
(String tableName, String columnName, Supplier<IColumnCallout> supplier) remove mapping for calloutvoid
For plugin to lookup this service by component name and call this method to register annotated callout classes.
-
Constructor Details
-
MappedColumnCalloutFactory
public MappedColumnCalloutFactory()default constructor
-
-
Method Details
-
getColumnCallouts
- Specified by:
getColumnCallouts
in interfaceIColumnCalloutFactory
- Returns:
- array of matching callouts
-
addMapping
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
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
For plugin to lookup this service by component name and call this method to register annotated callout classes.- Specified by:
scan
in interfaceIMappedColumnCalloutFactory
-