Package net.officefloor.web.value.load
Class KeyedParameterValueLoaderFactory
java.lang.Object
net.officefloor.web.value.load.KeyedParameterValueLoaderFactory
- All Implemented Interfaces:
StatelessValueLoaderFactory
StatelessValueLoaderFactory to load keyed string parameter.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionKeyedParameterValueLoaderFactory(String propertyName, String methodName) Initiate. -
Method Summary
Modifier and TypeMethodDescriptioncreateValueLoader(Class<?> clazz) Creates theStatelessValueLoader.Obtains the property name for theStatelessValueLoader.
-
Constructor Details
-
KeyedParameterValueLoaderFactory
Initiate.- Parameters:
propertyName- Property name.methodName-Methodname.
-
-
Method Details
-
getPropertyName
Description copied from interface:StatelessValueLoaderFactoryObtains the property name for theStatelessValueLoader.- Specified by:
getPropertyNamein interfaceStatelessValueLoaderFactory- Returns:
- Property name for the
StatelessValueLoader.
-
createValueLoader
Description copied from interface:StatelessValueLoaderFactoryCreates theStatelessValueLoader.- Specified by:
createValueLoaderin interfaceStatelessValueLoaderFactory- Parameters:
clazz-StatelessValueLoaderwill be specific to theClass.- Returns:
StatelessValueLoader.- Throws:
Exception- If fails to create theStatelessValueLoader.
-