Class DefaultPatchImportService

  • All Implemented Interfaces:
    PatchImportService

    public class DefaultPatchImportService
    extends java.lang.Object
    implements PatchImportService
    Implementation of patches specific import service.
    • Constructor Detail

      • DefaultPatchImportService

        public DefaultPatchImportService()
    • Method Detail

      • importImpexUnit

        public ImpexImportUnitResult importImpexUnit​(ImpexImportUnit impexImportUnit)
        Description copied from interface: PatchImportService
        Method for importing impex data based on ImpexImportUnit. ImpexImportUnitResult data is created after import with information about import result.
        Specified by:
        importImpexUnit in interface PatchImportService
        Parameters:
        impexImportUnit - unit which keeps all data
        Returns:
        ImpexImportUnitResult - object keeps information about impexImportUnit and import result
      • importImpexUnitWithoutTracking

        public ImpexImportUnitResult importImpexUnitWithoutTracking​(ImpexImportUnit impexImportUnit)
        Description copied from interface: PatchImportService
        Method is workaround not to execute the aspect. It is used to execute importImpexUnit without tracking.
        Specified by:
        importImpexUnitWithoutTracking in interface PatchImportService
        Parameters:
        impexImportUnit - unit which keeps all data
        Returns:
        ImpexImportUnitResult - object keeps information about impexImportUnit and import result
      • getStreamForImpexImportUnit

        public java.io.SequenceInputStream getStreamForImpexImportUnit​(ImpexImportUnit impexImportUnit)
                                                                throws java.io.FileNotFoundException
        Description copied from interface: PatchImportService
        Method prepares SequenceInputStream based on impexImportUnit. It combines stream based on macro list, header files and data file.
        Specified by:
        getStreamForImpexImportUnit in interface PatchImportService
        Parameters:
        impexImportUnit - unit which keeps all data
        Returns:
        SequenceInputStream keeps all data from impexImportUnit in one stream
        Throws:
        java.io.FileNotFoundException - when a given impex file cannot be found
      • setConfigurationService

        public void setConfigurationService​(ConfigurationService configurationService)
      • setImportService

        public void setImportService​(ImportService importService)