Class ObjectLoaderFactory
- java.lang.Object
-
- net.officefloor.plugin.xml.unmarshall.load.ObjectLoaderFactory
-
public class ObjectLoaderFactory extends java.lang.ObjectLoads objects onto a target object.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Class<?>targetObjectTypeClass of the target object.
-
Constructor Summary
Constructors Constructor Description ObjectLoaderFactory(java.lang.Class<?> targetObjectType)Initiate the Object Loader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectLoadercreateObjectLoader(java.lang.String loadMethodName, java.lang.Class<?> loadObjectType)Creates theObjectLoaderfor the load method of the target object.protected java.lang.reflect.MethodfindMethod(java.lang.Class objectClass, java.lang.String methodName, java.lang.Class parameterClass)Obtains the method of the input class by the input method name.
-
-
-
Method Detail
-
createObjectLoader
public ObjectLoader createObjectLoader(java.lang.String loadMethodName, java.lang.Class<?> loadObjectType) throws XmlMarshallException
Creates theObjectLoaderfor the load method of the target object.- Parameters:
loadMethodName-Methodname that loads theObject.loadObjectType- Type ofObjectbeing loaded.- Returns:
ObjectLoaderto load the object to the target object.- Throws:
XmlMarshallException- Should there be a failure to create theObjectLoader.
-
findMethod
protected java.lang.reflect.Method findMethod(java.lang.Class objectClass, java.lang.String methodName, java.lang.Class parameterClass) throws XmlMarshallExceptionObtains the method of the input class by the input method name.- Parameters:
objectClass- Class to identify the method from.methodName- Name of method to find.parameterClass-Classof parameter to method.- Returns:
- Method of class.
- Throws:
XmlMarshallException- If failed to find method to load.
-
-