Package org.adempiere.base
Class MappedByNameFactory<T>
- java.lang.Object
-
- org.adempiere.base.MappedByNameFactory<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
IMappedByNameFactory<T>
- Direct Known Subclasses:
MappedFormFactory
,MappedProcessFactory
public class MappedByNameFactory<T> extends Object implements IMappedByNameFactory<T>
Provide simple name/class name mapping through register lambda supplier object- Author:
- hengsin
-
-
Constructor Summary
Constructors Constructor Description MappedByNameFactory()
default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMapping(String name, Supplier<T> Supplier)
add name to class mappingSupplier<T>
getSupplier(String name)
void
removeMapping(String name)
remove name to class mapping-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.adempiere.base.IMappedByNameFactory
newInstance
-
-
-
-
Method Detail
-
addMapping
public void addMapping(String name, Supplier<T> Supplier)
Description copied from interface:IMappedByNameFactory
add name to class mapping- Specified by:
addMapping
in interfaceIMappedByNameFactory<T>
-
removeMapping
public void removeMapping(String name)
Description copied from interface:IMappedByNameFactory
remove name to class mapping- Specified by:
removeMapping
in interfaceIMappedByNameFactory<T>
-
getSupplier
public Supplier<T> getSupplier(String name)
- Specified by:
getSupplier
in interfaceIMappedByNameFactory<T>
- Returns:
Supplier
-
-