Package net.officefloor.web.value.load
Class ObjectParameterValueLoaderFactory
- java.lang.Object
-
- net.officefloor.web.value.load.ObjectParameterValueLoaderFactory
-
- All Implemented Interfaces:
StatelessValueLoaderFactory
public class ObjectParameterValueLoaderFactory extends java.lang.Object implements StatelessValueLoaderFactory
StatelessValueLoaderFactory
to load an object parameter.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ObjectParameterValueLoaderFactory(java.lang.String propertyName, java.lang.String methodName, java.lang.Class<?> objectType, ObjectInstantiator objectInstantiator, PropertyKeyFactory propertyKeyFactory)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatelessValueLoader
createValueLoader(java.lang.Class<?> clazz)
Creates theStatelessValueLoader
.java.lang.String
getPropertyName()
Obtains the property name for theStatelessValueLoader
.void
setValueLoader(StatelessValueLoader valueLoader)
Specifies theStatelessValueLoader
.
-
-
-
Constructor Detail
-
ObjectParameterValueLoaderFactory
public ObjectParameterValueLoaderFactory(java.lang.String propertyName, java.lang.String methodName, java.lang.Class<?> objectType, ObjectInstantiator objectInstantiator, PropertyKeyFactory propertyKeyFactory)
Initiate.- Parameters:
propertyName
- Property name.methodName
-Method
name.objectType
- Object type.objectInstantiator
-ObjectInstantiator
.propertyKeyFactory
-PropertyKeyFactory
.
-
-
Method Detail
-
setValueLoader
public void setValueLoader(StatelessValueLoader valueLoader)
Specifies theStatelessValueLoader
.- Parameters:
valueLoader
-StatelessValueLoader
.
-
getPropertyName
public java.lang.String getPropertyName()
Description copied from interface:StatelessValueLoaderFactory
Obtains the property name for theStatelessValueLoader
.- Specified by:
getPropertyName
in interfaceStatelessValueLoaderFactory
- Returns:
- Property name for the
StatelessValueLoader
.
-
createValueLoader
public StatelessValueLoader createValueLoader(java.lang.Class<?> clazz) throws java.lang.Exception
Description copied from interface:StatelessValueLoaderFactory
Creates theStatelessValueLoader
.- Specified by:
createValueLoader
in interfaceStatelessValueLoaderFactory
- Parameters:
clazz
-StatelessValueLoader
will be specific to theClass
.- Returns:
StatelessValueLoader
.- Throws:
java.lang.Exception
- If fails to create theStatelessValueLoader
.
-
-