Package net.bytebuddy.build
Class Plugin.Engine.Dispatcher.ForParallelTransformation.Factory
java.lang.Object
net.bytebuddy.build.Plugin.Engine.Dispatcher.ForParallelTransformation.Factory
- All Implemented Interfaces:
Plugin.Engine.Dispatcher.Factory
- Enclosing class:
Plugin.Engine.Dispatcher.ForParallelTransformation
@Enhance
public static class Plugin.Engine.Dispatcher.ForParallelTransformation.Factory
extends Object
implements Plugin.Engine.Dispatcher.Factory
A factory for a dispatcher that uses a given executor service for parallel dispatching.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmake
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a new dispatcher.
-
Field Details
-
executor
The executor to use.
-
-
Constructor Details
-
Factory
Creates a new dispatcher factory for parallel dispatching using the supplied executor.- Parameters:
executor
- The executor to use.
-
-
Method Details
-
make
public Plugin.Engine.Dispatcher make(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a new dispatcher.- Specified by:
make
in interfacePlugin.Engine.Dispatcher.Factory
- Parameters:
sink
- The sink to write any work to.transformed
- A list of all types that are transformed.failed
- A mapping of all types that failed during transformation to the exceptions that explain the failure.unresolved
- A list of type names that could not be resolved.- Returns:
- The dispatcher to use.
-