Package net.officefloor.web.value.load
Class KeyedObjectValueLoaderFactory
java.lang.Object
net.officefloor.web.value.load.KeyedObjectValueLoaderFactory
- All Implemented Interfaces:
StatelessValueLoaderFactory
StatelessValueLoaderFactory to load a keyed object.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionKeyedObjectValueLoaderFactory(String propertyName, String methodName, Class<?> objectType, ObjectInstantiator objectInstantiator, PropertyKeyFactory propertyKeyFactory) Initiate. -
Method Summary
Modifier and TypeMethodDescriptioncreateValueLoader(Class<?> clazz) Creates theStatelessValueLoader.Obtains the property name for theStatelessValueLoader.voidsetValueLoader(StatelessValueLoader valueLoader) Specifies theStatelessValueLoader.
-
Constructor Details
-
KeyedObjectValueLoaderFactory
public KeyedObjectValueLoaderFactory(String propertyName, String methodName, Class<?> objectType, ObjectInstantiator objectInstantiator, PropertyKeyFactory propertyKeyFactory) Initiate.- Parameters:
propertyName- Property name.methodName-Methodname.objectType- Object type.objectInstantiator-ObjectInstantiator.propertyKeyFactory-PropertyKeyFactory.
-
-
Method Details
-
setValueLoader
Specifies theStatelessValueLoader.- Parameters:
valueLoader-StatelessValueLoader.
-
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.
-