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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMapping(String name, Supplier<T> Supplier) add name to class mappinggetSupplier(String name) voidremoveMapping(String name) remove name to class mappingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.adempiere.base.IMappedByNameFactory
newInstance
-
Constructor Details
-
MappedByNameFactory
public MappedByNameFactory()default constructor
-
-
Method Details
-
addMapping
Description copied from interface:IMappedByNameFactoryadd name to class mapping- Specified by:
addMappingin interfaceIMappedByNameFactory<T>
-
removeMapping
Description copied from interface:IMappedByNameFactoryremove name to class mapping- Specified by:
removeMappingin interfaceIMappedByNameFactory<T>
-
getSupplier
- Specified by:
getSupplierin interfaceIMappedByNameFactory<T>- Returns:
Supplier
-