Class PatchExecutionUnitAspect

java.lang.Object
de.hybris.platform.patches.aop.PatchExecutionUnitAspect

public class PatchExecutionUnitAspect extends Object
This aspect is used for calls to:
  • DefaultPatchImportService.importImpexUnit(..)
  • PatchAction.perform(..)
For ImportPatchAction it creates PatchExecutionUnitModel and fills it with all data. For other implementations of PatchAction it runs their own defined strategies.
  • 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

      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(Collection<String> ownAspectsList)
    • setDefaultPatchExecutionUnitTrackingStrategy

      public void setDefaultPatchExecutionUnitTrackingStrategy(PatchExecutionUnitTrackingStrategy defaultPatchExecutionUnitTrackingStrategy)
    • setPatchExecutionUnitTrackingStrategyMap

      public void setPatchExecutionUnitTrackingStrategyMap(Map<String,PatchExecutionUnitTrackingStrategy> patchExecutionUnitTrackingStrategyMap)