Class Plugin.Engine.AbstractBase

java.lang.Object
net.bytebuddy.build.Plugin.Engine.AbstractBase
All Implemented Interfaces:
Plugin.Engine
Direct Known Subclasses:
Plugin.Engine.Default
Enclosing interface:
Plugin.Engine

public abstract static class Plugin.Engine.AbstractBase extends Object implements Plugin.Engine
An abstract base implementation of a plugin engine.
  • Constructor Details

    • AbstractBase

      public AbstractBase()
  • Method Details

    • 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(File source, File target, Plugin.Factory... factory) throws 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:
      IOException - If an I/O error occurs.
    • apply

      public Plugin.Engine.Summary apply(File source, File target, List<? extends Plugin.Factory> factories) throws 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:
      IOException - If an I/O error occurs.
    • apply

      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:
      IOException - If an I/O error occurs.