Package net.bytebuddy.build
Class Plugin.Engine.Dispatcher.ForSerialTransformation
java.lang.Object
net.bytebuddy.build.Plugin.Engine.Dispatcher.ForSerialTransformation
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Plugin.Engine.Dispatcher
- Enclosing interface:
- Plugin.Engine.Dispatcher
public static class Plugin.Engine.Dispatcher.ForSerialTransformation
extends Object
implements Plugin.Engine.Dispatcher
A dispatcher that applies transformation upon discovery.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
A factory for creating a serial dispatcher.Nested classes/interfaces inherited from interface net.bytebuddy.build.Plugin.Engine.Dispatcher
Plugin.Engine.Dispatcher.ForParallelTransformation, Plugin.Engine.Dispatcher.ForSerialTransformation, Plugin.Engine.Dispatcher.Materializable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<TypeDescription,
List<Throwable>> A mapping of all types that failed during transformation to the exceptions that explain the failure.private final List<Callable<? extends Plugin.Engine.Dispatcher.Materializable>>
A list of deferred processings.private final Plugin.Engine.Target.Sink
The sink to write any work to.private final List<TypeDescription>
A list of all types that are transformed.A list of type names that could not be resolved. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForSerialTransformation
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a dispatcher for a serial transformation. -
Method Summary
-
Field Details
-
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. -
preprocessings
A list of deferred processings.
-
-
Constructor Details
-
ForSerialTransformation
protected ForSerialTransformation(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a dispatcher for a serial transformation.- 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.
-
-
Method Details
-
accept
public void accept(Callable<? extends Callable<? extends Plugin.Engine.Dispatcher.Materializable>> work, boolean eager) throws IOException Accepts a new work assignment.- Specified by:
accept
in interfacePlugin.Engine.Dispatcher
- Parameters:
work
- The work to handle prefixed by a preprocessing step.eager
-true
if the processing does not need to be deferred until all preprocessing is complete.- Throws:
IOException
- If an I/O exception occurs.
-
complete
Completes the work being handled.- Specified by:
complete
in interfacePlugin.Engine.Dispatcher
- Throws:
IOException
- If an I/O exception occurs.
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-