Class DefaultPatchExecutionUnitTrackingStrategy
- java.lang.Object
-
- de.hybris.platform.patches.strategies.impl.DefaultPatchExecutionUnitTrackingStrategy
-
- All Implemented Interfaces:
PatchExecutionUnitTrackingStrategy
public class DefaultPatchExecutionUnitTrackingStrategy extends java.lang.Object implements PatchExecutionUnitTrackingStrategy
Default Patch Execution Unit tracking strategy withExecutionUnitTypeequals toExecutionUnitType.ACTION. Would be used if no custom Patch Execution Unit tracking strategy is defined.
-
-
Field Summary
Fields Modifier and Type Field Description protected ExecutionUnitTypeexecutionUnitTypeprotected ModelServicemodelServiceprotected PatchExecutionServicepatchExecutionServiceprotected TimeServicetimeService
-
Constructor Summary
Constructors Constructor Description DefaultPatchExecutionUnitTrackingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetExecutionUnitType(ExecutionUnitType executionUnitType)voidsetModelService(ModelService modelService)voidsetPatchExecutionService(PatchExecutionService patchExecutionService)voidsetTimeService(TimeService timeService)voidtrackAfterPerform(PatchExecutionUnitModel patchExecutionUnit, PatchActionData patchActionData, java.lang.Throwable ex)Method executed after real method invocation.PatchExecutionUnitModeltrackBeforePerform(PatchActionData patchActionData)Method executed before real method invocation.
-
-
-
Field Detail
-
timeService
protected TimeService timeService
-
modelService
protected ModelService modelService
-
patchExecutionService
protected PatchExecutionService patchExecutionService
-
executionUnitType
protected ExecutionUnitType executionUnitType
-
-
Method Detail
-
trackBeforePerform
public PatchExecutionUnitModel trackBeforePerform(PatchActionData patchActionData)
Description copied from interface:PatchExecutionUnitTrackingStrategyMethod executed before real method invocation. It createsPatchExecutionUnitModeland fills it with all data.- Specified by:
trackBeforePerformin interfacePatchExecutionUnitTrackingStrategy- Parameters:
patchActionData-PatchActionData- Returns:
- newly created
PatchExecutionUnitModel
-
trackAfterPerform
public void trackAfterPerform(PatchExecutionUnitModel patchExecutionUnit, PatchActionData patchActionData, java.lang.Throwable ex)
Description copied from interface:PatchExecutionUnitTrackingStrategyMethod executed after real method invocation. It completes passedPatchExecutionUnitModelwith all necessary data.- Specified by:
trackAfterPerformin interfacePatchExecutionUnitTrackingStrategy- Parameters:
patchExecutionUnit-PatchExecutionUnitModelpatchActionData-PatchActionDataex-Throwable
-
setTimeService
public void setTimeService(TimeService timeService)
-
setModelService
public void setModelService(ModelService modelService)
-
setPatchExecutionService
public void setPatchExecutionService(PatchExecutionService patchExecutionService)
-
setExecutionUnitType
public void setExecutionUnitType(ExecutionUnitType executionUnitType)
-
-