Class Plugin.Engine.AbstractBase

    • Constructor Detail

      • AbstractBase

        public AbstractBase()
    • Method Detail

      • withErrorHandlers

        public Plugin.Engine withErrorHandlers​(Plugin.Engine.ErrorHandler... errorHandler)
        Replaces the error handlers of this plugin engine with the supplied error handlers.
        Specified by:
        withErrorHandlers in interface Plugin.Engine
        Parameters:
        errorHandler - The error handlers to apply.
        Returns:
        A new plugin engine that is equal to this engine but with only the supplied error handlers being applied.
      • withParallelTransformation

        public Plugin.Engine withParallelTransformation​(int threads)
        Replaces the dispatcher factory of this plugin engine with a parallel dispatcher factory that uses the given amount of threads.
        Specified by:
        withParallelTransformation in interface Plugin.Engine
        Parameters:
        threads - The amount of threads to use.
        Returns:
        A new plugin engine that is equal to this engine but with a parallel dispatcher factory using the specified amount of threads.
      • apply

        public Plugin.Engine.Summary apply​(java.io.File source,
                                           java.io.File target,
                                           Plugin.Factory... factory)
                                    throws java.io.IOException
        Applies this plugin engine onto a given source and target.
        Specified by:
        apply in interface Plugin.Engine
        Parameters:
        source - The source which is treated as a folder or a jar file, if a folder does not exist.
        target - The target which is treated as a folder or a jar file, if a folder does not exist.
        factory - A list of plugin factories to a apply.
        Returns:
        A summary of the applied transformation.
        Throws:
        java.io.IOException - If an I/O error occurs.
      • apply

        public Plugin.Engine.Summary apply​(java.io.File source,
                                           java.io.File target,
                                           java.util.List<? extends Plugin.Factory> factories)
                                    throws java.io.IOException
        Applies this plugin engine onto a given source and target.
        Specified by:
        apply in interface Plugin.Engine
        Parameters:
        source - The source which is treated as a folder or a jar file, if a folder does not exist.
        target - The target which is treated as a folder or a jar file, if a folder does not exist.
        factories - A list of plugin factories to a apply.
        Returns:
        A summary of the applied transformation.
        Throws:
        java.io.IOException - If an I/O error occurs.
      • apply

        public Plugin.Engine.Summary apply​(Plugin.Engine.Source source,
                                           Plugin.Engine.Target target,
                                           Plugin.Factory... factory)
                                    throws java.io.IOException
        Applies this plugin engine onto a given source and target.
        Specified by:
        apply in interface Plugin.Engine
        Parameters:
        source - The source to use.
        target - The target to use.
        factory - A list of plugin factories to a apply.
        Returns:
        A summary of the applied transformation.
        Throws:
        java.io.IOException - If an I/O error occurs.