Package de.hybris.platform.patches.aop
Class PatchExecutionUnitAspect
- java.lang.Object
-
- de.hybris.platform.patches.aop.PatchExecutionUnitAspect
-
public class PatchExecutionUnitAspect extends java.lang.ObjectThis aspect is used for calls to:DefaultPatchImportService.importImpexUnit(..)PatchAction.perform(..)
ImportPatchActionit createsPatchExecutionUnitModeland fills it with all data. For other implementations ofPatchActionit runs their own defined strategies.
-
-
Constructor Summary
Constructors Constructor Description PatchExecutionUnitAspect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImpexImportUnitResulthandleImportPatch(org.aspectj.lang.ProceedingJoinPoint joinPoint)Method that performs a tracking activity for DefaultPatchImportService.importImpexUnit(..) method calls.voidhandlePerformActionPatch(org.aspectj.lang.ProceedingJoinPoint joinPoint)Method that performs a tracking activity for PatchAction.perform(..) method calls using tracking strategies.voidsetDefaultPatchExecutionUnitTrackingStrategy(PatchExecutionUnitTrackingStrategy defaultPatchExecutionUnitTrackingStrategy)voidsetModelService(ModelService modelService)voidsetOwnAspectsList(java.util.Collection<java.lang.String> ownAspectsList)voidsetPatchExecutionService(PatchExecutionService patchExecutionService)voidsetPatchExecutionUnitTrackingStrategyMap(java.util.Map<java.lang.String,PatchExecutionUnitTrackingStrategy> patchExecutionUnitTrackingStrategyMap)voidsetPatchImportService(PatchImportService patchImportService)voidsetTimeService(TimeService timeService)
-
-
-
Method Detail
-
handleImportPatch
public ImpexImportUnitResult handleImportPatch(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws java.lang.Throwable
Method that performs a tracking activity for DefaultPatchImportService.importImpexUnit(..) method calls. This method is specific only for impex import action.- Parameters:
joinPoint-ProceedingJoinPoint- Returns:
ImpexImportUnitResult- Throws:
java.lang.Throwable- throws PatchImportException when there are minor errors, which has no impact on import continuation, other exceptions will stop whole init/update process
-
handlePerformActionPatch
public void handlePerformActionPatch(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws java.lang.ThrowableMethod that performs a tracking activity for PatchAction.perform(..) method calls using tracking strategies. Firstly it checks if a PatchAction implementation has its own aspect defined (which is a case for ImportPatchAction). If no, gets tracking strategy for specific PatchAction implementation and performs a tracking using defined tracking strategy. Otherwise performs a tracking using default tracking strategy.- Parameters:
joinPoint-ProceedingJoinPoint- Throws:
java.lang.Throwable- when there are major errors which have impact on stopping whole init/update process
-
setTimeService
public void setTimeService(TimeService timeService)
-
setModelService
public void setModelService(ModelService modelService)
-
setPatchExecutionService
public void setPatchExecutionService(PatchExecutionService patchExecutionService)
-
setPatchImportService
public void setPatchImportService(PatchImportService patchImportService)
-
setOwnAspectsList
public void setOwnAspectsList(java.util.Collection<java.lang.String> ownAspectsList)
-
setDefaultPatchExecutionUnitTrackingStrategy
public void setDefaultPatchExecutionUnitTrackingStrategy(PatchExecutionUnitTrackingStrategy defaultPatchExecutionUnitTrackingStrategy)
-
setPatchExecutionUnitTrackingStrategyMap
public void setPatchExecutionUnitTrackingStrategyMap(java.util.Map<java.lang.String,PatchExecutionUnitTrackingStrategy> patchExecutionUnitTrackingStrategyMap)
-
-