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
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, MODULE_INFO, PACKAGE_INFO, PLUGIN_FILE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(File source, File target, List<? extends Plugin.Factory> factories) Applies this plugin engine onto a given source and target.apply
(File source, File target, Plugin.Factory... factory) Applies this plugin engine onto a given source and target.apply
(Plugin.Engine.Source source, Plugin.Engine.Target target, Plugin.Factory... factory) Applies this plugin engine onto a given source and target.withErrorHandlers
(Plugin.Engine.ErrorHandler... errorHandler) Replaces the error handlers of this plugin engine with the supplied error handlers.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
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
withErrorHandlers
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
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(File source, File target, Plugin.Factory... factory) throws 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:
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 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:
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 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:
IOException
- If an I/O error occurs.
-