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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Plugin.Engine.Dispatcher
make(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription,List<Throwable>> failed, List<String> unresolved)
Creates a new dispatcher.
-
-
-
Constructor Detail
-
Factory
public Factory(Executor executor)
Creates a new dispatcher factory for parallel dispatching using the supplied executor.- Parameters:
executor
- The executor to use.
-
-
Method Detail
-
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.
-
-