@HashCodeAndEqualsPlugin.Enhance public static class Plugin.Engine.Listener.WithTransformationsOnly extends Plugin.Engine.Listener.Adapter
Plugin.Engine.Listener.Adapter, Plugin.Engine.Listener.Compound, Plugin.Engine.Listener.ForErrorHandler, Plugin.Engine.Listener.NoOp, Plugin.Engine.Listener.StreamWriting, Plugin.Engine.Listener.WithErrorsOnly, Plugin.Engine.Listener.WithTransformationsOnly
Plugin.Engine.ErrorHandler.Enforcing, Plugin.Engine.ErrorHandler.Failing
Modifier and Type | Field and Description |
---|---|
private Plugin.Engine.Listener |
delegate
The delegate to forward events to.
|
Constructor and Description |
---|
WithTransformationsOnly(Plugin.Engine.Listener delegate)
Creates a new listener decorator that filter any event that is not related to transformation or errors.
|
Modifier and Type | Method and Description |
---|---|
void |
onError(java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> throwables)
Invoked at the end of the build if at least one type transformation failed.
|
void |
onError(Plugin plugin,
java.lang.Throwable throwable)
Invoked at the end of the build if a plugin could not be closed.
|
void |
onError(TypeDescription typeDescription,
java.util.List<java.lang.Throwable> throwables)
Invoked after the application of all plugins was attempted if at least one error occured during handling a given type.
|
void |
onError(TypeDescription typeDescription,
Plugin plugin,
java.lang.Throwable throwable)
Invoked if an error occured during a plugin's application on a given type.
|
void |
onTransformation(TypeDescription typeDescription,
java.util.List<Plugin> plugins)
Invoked after a type was transformed using at least one plugin.
|
void |
onTransformation(TypeDescription typeDescription,
Plugin plugin)
Invoked after a type was transformed using a specific plugin.
|
onComplete, onDiscovery, onIgnored, onIgnored, onLiveInitializer, onManifest, onResource, onUnresolved
private final Plugin.Engine.Listener delegate
public WithTransformationsOnly(Plugin.Engine.Listener delegate)
delegate
- The delegate to forward events to.public void onTransformation(TypeDescription typeDescription, Plugin plugin)
Plugin.Engine.Listener.Adapter
onTransformation
in interface Plugin.Engine.Listener
onTransformation
in class Plugin.Engine.Listener.Adapter
typeDescription
- The type being transformed.plugin
- The plugin that was applied.public void onTransformation(TypeDescription typeDescription, java.util.List<Plugin> plugins)
Plugin.Engine.Listener.Adapter
onTransformation
in interface Plugin.Engine.Listener
onTransformation
in class Plugin.Engine.Listener.Adapter
typeDescription
- The type being transformed.plugins
- A list of plugins that were applied.public void onError(TypeDescription typeDescription, Plugin plugin, java.lang.Throwable throwable)
Plugin.Engine.Listener.Adapter
onError
in interface Plugin.Engine.ErrorHandler
onError
in class Plugin.Engine.Listener.Adapter
typeDescription
- The type being matched or transformed.plugin
- The plugin being applied.throwable
- The throwable that caused the error.public void onError(TypeDescription typeDescription, java.util.List<java.lang.Throwable> throwables)
Plugin.Engine.Listener.Adapter
onError
in interface Plugin.Engine.ErrorHandler
onError
in class Plugin.Engine.Listener.Adapter
typeDescription
- The type being transformed.throwables
- The throwables that caused errors during the application.public void onError(java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> throwables)
Plugin.Engine.Listener.Adapter
onError
in interface Plugin.Engine.ErrorHandler
onError
in class Plugin.Engine.Listener.Adapter
throwables
- A mapping of types that failed during transformation to the errors that were caught.public void onError(Plugin plugin, java.lang.Throwable throwable)
Plugin.Engine.Listener.Adapter
onError
in interface Plugin.Engine.ErrorHandler
onError
in class Plugin.Engine.Listener.Adapter
plugin
- The plugin that could not be closed.throwable
- The error that was caused when the plugin was attempted to be closed.