Class WorkflowActionPopulator
- java.lang.Object
-
- de.hybris.platform.ordermanagementfacades.workflow.converters.populator.WorkflowActionPopulator
-
- All Implemented Interfaces:
Populator<WorkflowActionModel,WorkflowActionData>
public class WorkflowActionPopulator extends java.lang.Object implements Populator<WorkflowActionModel,WorkflowActionData>
Converter implementation forWorkflowActionModelas source andWorkflowActionDataas target type.
-
-
Constructor Summary
Constructors Constructor Description WorkflowActionPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> TinvokeMethod(java.lang.Object object, java.lang.String name, java.lang.Class<T> targetClass)Use reflection to invoke a method of an objectvoidpopulate(WorkflowActionModel source, WorkflowActionData target)Populate the target instance with values from the source instance.
-
-
-
Method Detail
-
populate
public void populate(WorkflowActionModel source, WorkflowActionData target)
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<WorkflowActionModel,WorkflowActionData>- Parameters:
source- the source objecttarget- the target to fill
-
invokeMethod
protected <T> T invokeMethod(java.lang.Object object, java.lang.String name, java.lang.Class<T> targetClass)Use reflection to invoke a method of an object- Parameters:
object- the object to invoke onname- the method nametargetClass- the target class of return type- Returns:
- value of the invocation
-
-