public abstract static class Plugin.Engine.Listener.Adapter extends Object implements Plugin.Engine.Listener
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| Constructor and Description | 
|---|
| Adapter() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | onComplete(TypeDescription typeDescription)Invoked upon completing handling a type that was either transformed or ignored. | 
| void | onDiscovery(String typeName)Invoked upon discovering a type but prior to its resolution. | 
| void | onError(Map<TypeDescription,List<Throwable>> throwables)Invoked at the end of the build if at least one type transformation failed. | 
| void | onError(Plugin plugin,
       Throwable throwable)Invoked at the end of the build if a plugin could not be closed. | 
| void | onError(TypeDescription typeDescription,
       List<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,
       Throwable throwable)Invoked if an error occured during a plugin's application on a given type. | 
| void | onIgnored(TypeDescription typeDescription,
         List<Plugin> plugins)Invoked if one or more plugins did not transform a type. | 
| void | onIgnored(TypeDescription typeDescription,
         Plugin plugin)Invoked if a type description is ignored by a given plugin. | 
| void | onLiveInitializer(TypeDescription typeDescription,
                 TypeDescription definingType)Invoked if a type transformation implied a live initializer. | 
| void | onManifest(Manifest manifest)Invoked when a manifest was found or found missing. | 
| void | onResource(String name)Invoked if a resource that is not a class file is discovered. | 
| void | onTransformation(TypeDescription typeDescription,
                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. | 
| void | onUnresolved(String typeName)Invoked if a type could not be resolved. | 
public void onDiscovery(String typeName)
onDiscovery in interface Plugin.Engine.ListenertypeName - The name of the discovered type.public void onTransformation(TypeDescription typeDescription, Plugin plugin)
onTransformation in interface Plugin.Engine.ListenertypeDescription - The type being transformed.plugin - The plugin that was applied.public void onTransformation(TypeDescription typeDescription, List<Plugin> plugins)
onTransformation in interface Plugin.Engine.ListenertypeDescription - The type being transformed.plugins - A list of plugins that were applied.public void onIgnored(TypeDescription typeDescription, Plugin plugin)
onIgnored in interface Plugin.Engine.ListenertypeDescription - The type being transformed.plugin - The plugin that ignored the given type.public void onIgnored(TypeDescription typeDescription, List<Plugin> plugins)
onIgnored in interface Plugin.Engine.ListenertypeDescription - The type being transformed.plugins - the plugins that ignored the type.public void onError(TypeDescription typeDescription, Plugin plugin, Throwable throwable)
onError in interface Plugin.Engine.ErrorHandlertypeDescription - The type being matched or transformed.plugin - The plugin being applied.throwable - The throwable that caused the error.public void onError(TypeDescription typeDescription, List<Throwable> throwables)
onError in interface Plugin.Engine.ErrorHandlertypeDescription - The type being transformed.throwables - The throwables that caused errors during the application.public void onError(Map<TypeDescription,List<Throwable>> throwables)
onError in interface Plugin.Engine.ErrorHandlerthrowables - A mapping of types that failed during transformation to the errors that were caught.public void onError(Plugin plugin, Throwable throwable)
onError in interface Plugin.Engine.ErrorHandlerplugin - 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)
onLiveInitializer in interface Plugin.Engine.ErrorHandlertypeDescription - The type that was transformed.definingType - The type that implies the initializer which might be the type itself or an auxiliary type.public void onComplete(TypeDescription typeDescription)
onComplete in interface Plugin.Engine.ListenertypeDescription - The type that was transformed.public void onUnresolved(String typeName)
onUnresolved in interface Plugin.Engine.ErrorHandlertypeName - The name of the unresolved type.public void onManifest(@MaybeNull Manifest manifest)
onManifest in interface Plugin.Engine.ErrorHandlermanifest - The located manifest or null if no manifest was found.public void onResource(String name)
onResource in interface Plugin.Engine.ErrorHandlername - The name of the discovered resource.Copyright © 2014–2023. All rights reserved.