protected static class ByteBuddyMojo.TransformationLogger extends Plugin.Engine.Listener.Adapter
Plugin.Engine.Listener that logs several relevant events during the build.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.WithTransformationsOnlyPlugin.Engine.ErrorHandler.Enforcing, Plugin.Engine.ErrorHandler.Failing| Modifier and Type | Field and Description |
|---|---|
private org.apache.maven.plugin.logging.Log |
log
The logger to delegate to.
|
| Modifier | Constructor and Description |
|---|---|
protected |
TransformationLogger(org.apache.maven.plugin.logging.Log log)
Creates a new transformation logger.
|
| 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,
Plugin plugin,
java.lang.Throwable throwable)
Invoked if an error occured during a plugin's application on a given type.
|
void |
onLiveInitializer(TypeDescription typeDescription,
TypeDescription definingType)
Invoked if a type transformation implied a live initializer.
|
void |
onTransformation(TypeDescription typeDescription,
java.util.List<Plugin> plugins)
Invoked after a type was transformed using at least one plugin.
|
onComplete, onDiscovery, onError, onIgnored, onIgnored, onManifest, onResource, onTransformation, onUnresolvedprotected TransformationLogger(org.apache.maven.plugin.logging.Log log)
log - The logger to delegate to.public void onTransformation(TypeDescription typeDescription, java.util.List<Plugin> plugins)
Plugin.Engine.Listener.AdapteronTransformation in interface Plugin.Engine.ListeneronTransformation in class Plugin.Engine.Listener.AdaptertypeDescription - 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.AdapteronError in interface Plugin.Engine.ErrorHandleronError in class Plugin.Engine.Listener.AdaptertypeDescription - The type being matched or transformed.plugin - The plugin being applied.throwable - The throwable that caused the error.public void onError(java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> throwables)
Plugin.Engine.Listener.AdapteronError in interface Plugin.Engine.ErrorHandleronError in class Plugin.Engine.Listener.Adapterthrowables - 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.AdapteronError in interface Plugin.Engine.ErrorHandleronError in class Plugin.Engine.Listener.Adapterplugin - The plugin that could not be closed.throwable - The error that was caused when the plugin was attempted to be closed.public void onLiveInitializer(TypeDescription typeDescription, TypeDescription definingType)
Plugin.Engine.Listener.AdapteronLiveInitializer in interface Plugin.Engine.ErrorHandleronLiveInitializer in class Plugin.Engine.Listener.AdaptertypeDescription - The type that was transformed.definingType - The type that implies the initializer which might be the type itself or an auxiliary type.