Class ObjectLoaderFactory
java.lang.Object
net.officefloor.plugin.xml.unmarshall.load.ObjectLoaderFactory
Loads objects onto a target object.
- Author:
- Daniel Sagenschneider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateObjectLoader(String loadMethodName, Class<?> loadObjectType) Creates theObjectLoaderfor the load method of the target object.protected MethodfindMethod(Class objectClass, String methodName, Class parameterClass) Obtains the method of the input class by the input method name.
-
Field Details
-
targetObjectType
Class of the target object.
-
-
Constructor Details
-
ObjectLoaderFactory
Initiate the Object Loader.- Parameters:
targetObjectType- Class of the target object.
-
-
Method Details
-
createObjectLoader
public ObjectLoader createObjectLoader(String loadMethodName, 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 Method findMethod(Class objectClass, String methodName, Class parameterClass) throws XmlMarshallException Obtains 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.
-