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
Provide simple name/class name mapping through register lambda supplier object
- Author:
- hengsin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMapping
(String name, Supplier<T> Supplier) add name to class mappinggetSupplier
(String name) void
removeMapping
(String name) remove name to class mappingMethods 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
-
Constructor Details
-
MappedByNameFactory
public MappedByNameFactory()default constructor
-
-
Method Details
-
addMapping
Description copied from interface:IMappedByNameFactory
add name to class mapping- Specified by:
addMapping
in interfaceIMappedByNameFactory<T>
-
removeMapping
Description copied from interface:IMappedByNameFactory
remove name to class mapping- Specified by:
removeMapping
in interfaceIMappedByNameFactory<T>
-
getSupplier
- Specified by:
getSupplier
in interfaceIMappedByNameFactory<T>
- Returns:
Supplier
-