Package de.hybris.platform.patches.aop
Class PatchExecutionUnitAspect
java.lang.Object
de.hybris.platform.patches.aop.PatchExecutionUnitAspect
This aspect is used for calls to:
DefaultPatchImportService.importImpexUnit(..)PatchAction.perform(..)
ImportPatchAction it creates PatchExecutionUnitModel and fills it with all data. For other
implementations of PatchAction it runs their own defined strategies.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandleImportPatch(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(Collection<String> ownAspectsList) voidsetPatchExecutionService(PatchExecutionService patchExecutionService) voidsetPatchExecutionUnitTrackingStrategyMap(Map<String, PatchExecutionUnitTrackingStrategy> patchExecutionUnitTrackingStrategyMap) voidsetPatchImportService(PatchImportService patchImportService) voidsetTimeService(TimeService timeService)
-
Constructor Details
-
PatchExecutionUnitAspect
public PatchExecutionUnitAspect()
-
-
Method Details
-
handleImportPatch
public ImpexImportUnitResult handleImportPatch(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws 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:
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 Throwable Method 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:
Throwable- when there are major errors which have impact on stopping whole init/update process
-
setTimeService
-
setModelService
-
setPatchExecutionService
-
setPatchImportService
-
setOwnAspectsList
-
setDefaultPatchExecutionUnitTrackingStrategy
public void setDefaultPatchExecutionUnitTrackingStrategy(PatchExecutionUnitTrackingStrategy defaultPatchExecutionUnitTrackingStrategy) -
setPatchExecutionUnitTrackingStrategyMap
public void setPatchExecutionUnitTrackingStrategyMap(Map<String, PatchExecutionUnitTrackingStrategy> patchExecutionUnitTrackingStrategyMap)
-