Class DefaultPatchExecutionUnitTrackingStrategy
java.lang.Object
de.hybris.platform.patches.strategies.impl.DefaultPatchExecutionUnitTrackingStrategy
- All Implemented Interfaces:
PatchExecutionUnitTrackingStrategy
public class DefaultPatchExecutionUnitTrackingStrategy
extends Object
implements PatchExecutionUnitTrackingStrategy
Default Patch Execution Unit tracking strategy with
ExecutionUnitType equals to
ExecutionUnitType.ACTION. Would be used if no custom Patch Execution Unit tracking strategy is defined.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ExecutionUnitTypeprotected ModelServiceprotected PatchExecutionServiceprotected TimeService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetExecutionUnitType(ExecutionUnitType executionUnitType) voidsetModelService(ModelService modelService) voidsetPatchExecutionService(PatchExecutionService patchExecutionService) voidsetTimeService(TimeService timeService) voidtrackAfterPerform(PatchExecutionUnitModel patchExecutionUnit, PatchActionData patchActionData, Throwable ex) Method executed after real method invocation.trackBeforePerform(PatchActionData patchActionData) Method executed before real method invocation.
-
Field Details
-
timeService
-
modelService
-
patchExecutionService
-
executionUnitType
-
-
Constructor Details
-
DefaultPatchExecutionUnitTrackingStrategy
public DefaultPatchExecutionUnitTrackingStrategy()
-
-
Method Details
-
trackBeforePerform
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, 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
-
setModelService
-
setPatchExecutionService
-
setExecutionUnitType
-