Class PatchExecutionUnitAspect


  • public class PatchExecutionUnitAspect
    extends java.lang.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 Detail

      • PatchExecutionUnitAspect

        public PatchExecutionUnitAspect()
    • 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.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:
        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)