Package net.bytebuddy.build
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 java.lang.Object implements Plugin.Engine
An abstract base implementation of a plugin engine.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.build.Plugin.Engine
Plugin.Engine.AbstractBase, Plugin.Engine.Default, Plugin.Engine.Dispatcher, Plugin.Engine.ErrorHandler, Plugin.Engine.Listener, Plugin.Engine.PoolStrategy, Plugin.Engine.Source, Plugin.Engine.Summary, Plugin.Engine.Target, Plugin.Engine.TypeStrategy
-
-
Field Summary
-
Fields inherited from interface net.bytebuddy.build.Plugin.Engine
CLASS_FILE_EXTENSION
-
-
Constructor Summary
Constructors Constructor Description AbstractBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Plugin.Engine.Summary
apply(java.io.File source, java.io.File target, java.util.List<? extends Plugin.Factory> factories)
Applies this plugin engine onto a given source and target.Plugin.Engine.Summary
apply(java.io.File source, java.io.File target, Plugin.Factory... factory)
Applies this plugin engine onto a given source and target.Plugin.Engine.Summary
apply(Plugin.Engine.Source source, Plugin.Engine.Target target, Plugin.Factory... factory)
Applies this plugin engine onto a given source and target.Plugin.Engine
withErrorHandlers(Plugin.Engine.ErrorHandler... errorHandler)
Replaces the error handlers of this plugin engine with the supplied error handlers.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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.build.Plugin.Engine
apply, ignore, with, with, with, with, with, with, withErrorHandlers, withoutErrorHandlers
-
-
-
-
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 interfacePlugin.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 interfacePlugin.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 interfacePlugin.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 interfacePlugin.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 interfacePlugin.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.
-
-