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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMapping(String tableName, String columnName, Supplier<IColumnCallout> supplier) add mapping for calloutgetColumnCallouts(String tableName, String columnName) voidremoveMapping(String tableName, String columnName, Supplier<IColumnCallout> supplier) remove mapping for calloutvoidFor 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:
getColumnCalloutsin interfaceIColumnCalloutFactory- Returns:
- array of matching callouts
-
addMapping
Description copied from interface:IMappedColumnCalloutFactoryadd mapping for callout- Specified by:
addMappingin interfaceIMappedColumnCalloutFactory- Parameters:
tableName- case insensitive table name or * to match all tablecolumnName- case insensitive column name or * to match all columnsupplier- supplier forIColumnCalloutinstance
-
removeMapping
Description copied from interface:IMappedColumnCalloutFactoryremove mapping for callout- Specified by:
removeMappingin interfaceIMappedColumnCalloutFactory- Parameters:
tableName- case insensitive table name or * to match all tablecolumnName- case insensitive column name or * to match all columnsupplier- supplier forIColumnCalloutinstance
-
scan
For plugin to lookup this service by component name and call this method to register annotated callout classes.- Specified by:
scanin interfaceIMappedColumnCalloutFactory
-