Uses of Interface
net.bytebuddy.build.Plugin
Packages that use Plugin
Package
Description
An agent builder is used to easily implement load-time class-transformations using a Java agent.
A package for types that allow for applying Byte Buddy transformation during a build process.
A package containing classes for applying Byte Buddy transformers within a Maven build.
-
Uses of Plugin in net.bytebuddy.agent.builder
Fields in net.bytebuddy.agent.builder declared as PluginModifier and TypeFieldDescriptionprivate final Plugin
AgentBuilder.Transformer.ForBuildPlugin.plugin
The plugin to apply.Methods in net.bytebuddy.agent.builder with parameters of type PluginModifier and TypeMethodDescriptionstatic AgentBuilder
AgentBuilder.Default.of
(EntryPoint entryPoint, Plugin... plugin) Creates anAgentBuilder
that realizes the provided build plugins.static AgentBuilder
AgentBuilder.Default.of
(EntryPoint entryPoint, ClassFileVersion classFileVersion, Plugin... plugin) Creates anAgentBuilder
that realizes the provided build plugins.static AgentBuilder
Creates anAgentBuilder
that realizes the provided build plugins.static AgentBuilder
AgentBuilder.Default.of
(ClassFileVersion classFileVersion, Plugin... plugin) Creates anAgentBuilder
that realizes the provided build plugins.Method parameters in net.bytebuddy.agent.builder with type arguments of type PluginModifier and TypeMethodDescriptionstatic AgentBuilder
Creates anAgentBuilder
that realizes the provided build plugins.static AgentBuilder
AgentBuilder.Default.of
(EntryPoint entryPoint, List<? extends Plugin> plugins) Creates anAgentBuilder
that realizes the provided build plugins.static AgentBuilder
AgentBuilder.Default.of
(EntryPoint entryPoint, ClassFileVersion classFileVersion, List<? extends Plugin> plugins) Creates anAgentBuilder
that realizes the provided build plugins.static AgentBuilder
AgentBuilder.Default.of
(ClassFileVersion classFileVersion, List<? extends Plugin> plugins) Creates anAgentBuilder
that realizes the provided build plugins.Constructors in net.bytebuddy.agent.builder with parameters of type PluginModifierConstructorDescriptionForBuildPlugin
(Plugin plugin) Creates a new transformer for a buildPlugin
. -
Uses of Plugin in net.bytebuddy.build
Subinterfaces of Plugin in net.bytebuddy.buildModifier and TypeInterfaceDescriptionstatic interface
A plugin that applies a preprocessor, i.e.Classes in net.bytebuddy.build that implement PluginModifier and TypeClassDescriptionclass
A build tool plugin that instruments methods to dispatch to methodsjava.security.AccessController
with equal signature.class
A plugin that caches the return value of a method in a synthetic field.class
A plugin that adds anHashCodeAndEqualsPlugin.Enhance
annotation to any method of an enhanced type where the annotation is not set.class
A build tool plugin that addsObject.hashCode()
andObject.equals(Object)
methods to a class if theHashCodeAndEqualsPlugin.Enhance
annotation is present and no explicit method declaration was added.static class
A version of theHashCodeAndEqualsPlugin
that assumes that all fields are non-nullable unless they are explicitly marked.static class
An abstract base for aPlugin
that matches types by a givenElementMatcher
.static class
A non-operational plugin that does not instrument any type.class
A plugin that allows for adding ajava.lang.annotation.Repeatable
annotation even if compiled prior to Java 8 which introduces this annotation.class
A build tool plugin that adds aObject.toString()
and method to a class if theToStringPlugin.Enhance
annotation is present and no explicit method declaration was added.Fields in net.bytebuddy.build declared as PluginModifier and TypeFieldDescriptionprivate final Plugin
Plugin.Factory.Simple.plugin
The plugin to provide.Fields in net.bytebuddy.build with type parameters of type PluginModifier and TypeFieldDescriptionprivate final Constructor<? extends Plugin>
Plugin.Factory.UsingReflection.Instantiator.Resolved.constructor
The represented constructor.Plugin.Engine.Default.Preprocessor.plugins
The plugins to apply.Plugin.Factory.UsingReflection.Instantiator.Unresolved.type
The type for which no constructor was yet resolved.Plugin.Factory.UsingReflection.type
The plugin type.Methods in net.bytebuddy.build that return PluginModifier and TypeMethodDescriptionPlugin.Factory.UsingReflection.Instantiator.Ambiguous.instantiate()
Instantiates the represented plugin.Plugin.Factory.UsingReflection.Instantiator.instantiate()
Instantiates the represented plugin.Plugin.Factory.UsingReflection.Instantiator.Resolved.instantiate()
Instantiates the represented plugin.Plugin.Factory.UsingReflection.Instantiator.Unresolved.instantiate()
Instantiates the represented plugin.AccessControllerPlugin.make()
Returns a plugin that can be used for a transformation and which is subsequently closed.CachedReturnPlugin.make()
Returns a plugin that can be used for a transformation and which is subsequently closed.HashCodeAndEqualsPlugin.make()
Returns a plugin that can be used for a transformation and which is subsequently closed.Plugin.Factory.make()
Returns a plugin that can be used for a transformation and which is subsequently closed.Plugin.Factory.Simple.make()
Returns a plugin that can be used for a transformation and which is subsequently closed.Plugin.Factory.UsingReflection.make()
Returns a plugin that can be used for a transformation and which is subsequently closed.Plugin.NoOp.make()
Returns a plugin that can be used for a transformation and which is subsequently closed.ToStringPlugin.make()
Returns a plugin that can be used for a transformation and which is subsequently closed.Methods in net.bytebuddy.build that return types with arguments of type PluginModifier and TypeMethodDescriptionprotected Constructor<? extends Plugin>
Plugin.Factory.UsingReflection.Instantiator.Resolved.getConstructor()
Returns the resolved constructor.Methods in net.bytebuddy.build with parameters of type PluginModifier and TypeMethodDescriptionvoid
Invoked at the end of the build if a plugin could not be closed.void
Plugin.Engine.ErrorHandler.Compound.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) Invoked if an error occured during a plugin's application on a given type.void
Invoked at the end of the build if a plugin could not be closed.void
Plugin.Engine.ErrorHandler.Enforcing.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) Invoked if an error occured during a plugin's application on a given type.void
Invoked at the end of the build if a plugin could not be closed.void
Invoked at the end of the build if a plugin could not be closed.void
Plugin.Engine.ErrorHandler.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) Invoked if an error occured during a plugin's application on a given type.void
Invoked at the end of the build if a plugin could not be closed.void
Plugin.Engine.Listener.Adapter.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) Invoked if an error occured during a plugin's application on a given type.void
Invoked at the end of the build if a plugin could not be closed.void
Plugin.Engine.Listener.Compound.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) Invoked if an error occured during a plugin's application on a given type.void
void
Plugin.Engine.Listener.ForErrorHandler.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) void
Invoked at the end of the build if a plugin could not be closed.void
Plugin.Engine.Listener.NoOp.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) Invoked if an error occured during a plugin's application on a given type.void
Invoked at the end of the build if a plugin could not be closed.void
Plugin.Engine.Listener.StreamWriting.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) Invoked if an error occured during a plugin's application on a given type.void
void
Plugin.Engine.Listener.WithErrorsOnly.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) void
void
Plugin.Engine.Listener.WithTransformationsOnly.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) void
Plugin.Engine.Listener.Adapter.onIgnored
(TypeDescription typeDescription, Plugin plugin) Invoked if a type description is ignored by a given plugin.void
Plugin.Engine.Listener.Compound.onIgnored
(TypeDescription typeDescription, Plugin plugin) Invoked if a type description is ignored by a given plugin.void
Plugin.Engine.Listener.NoOp.onIgnored
(TypeDescription typeDescription, Plugin plugin) Invoked if a type description is ignored by a given plugin.void
Plugin.Engine.Listener.onIgnored
(TypeDescription typeDescription, Plugin plugin) Invoked if a type description is ignored by a given plugin.void
Plugin.Engine.Listener.StreamWriting.onIgnored
(TypeDescription typeDescription, Plugin plugin) Invoked if a type description is ignored by a given plugin.void
Plugin.Engine.Listener.Adapter.onTransformation
(TypeDescription typeDescription, Plugin plugin) Invoked after a type was transformed using a specific plugin.void
Plugin.Engine.Listener.Compound.onTransformation
(TypeDescription typeDescription, Plugin plugin) Invoked after a type was transformed using a specific plugin.void
Plugin.Engine.Listener.NoOp.onTransformation
(TypeDescription typeDescription, Plugin plugin) Invoked after a type was transformed using a specific plugin.void
Plugin.Engine.Listener.onTransformation
(TypeDescription typeDescription, Plugin plugin) Invoked after a type was transformed using a specific plugin.void
Plugin.Engine.Listener.StreamWriting.onTransformation
(TypeDescription typeDescription, Plugin plugin) Invoked after a type was transformed using a specific plugin.void
Plugin.Engine.Listener.WithTransformationsOnly.onTransformation
(TypeDescription typeDescription, Plugin plugin) Method parameters in net.bytebuddy.build with type arguments of type PluginModifier and TypeMethodDescriptionvoid
Plugin.Engine.Listener.Adapter.onIgnored
(TypeDescription typeDescription, List<Plugin> plugins) Invoked if one or more plugins did not transform a type.void
Plugin.Engine.Listener.Compound.onIgnored
(TypeDescription typeDescription, List<Plugin> plugins) Invoked if one or more plugins did not transform a type.void
Plugin.Engine.Listener.NoOp.onIgnored
(TypeDescription typeDescription, List<Plugin> plugins) Invoked if one or more plugins did not transform a type.void
Plugin.Engine.Listener.onIgnored
(TypeDescription typeDescription, List<Plugin> plugins) Invoked if one or more plugins did not transform a type.void
Plugin.Engine.Listener.Adapter.onTransformation
(TypeDescription typeDescription, List<Plugin> plugins) Invoked after a type was transformed using at least one plugin.void
Plugin.Engine.Listener.Compound.onTransformation
(TypeDescription typeDescription, List<Plugin> plugins) Invoked after a type was transformed using at least one plugin.void
Plugin.Engine.Listener.NoOp.onTransformation
(TypeDescription typeDescription, List<Plugin> plugins) Invoked after a type was transformed using at least one plugin.void
Plugin.Engine.Listener.onTransformation
(TypeDescription typeDescription, List<Plugin> plugins) Invoked after a type was transformed using at least one plugin.void
Plugin.Engine.Listener.WithTransformationsOnly.onTransformation
(TypeDescription typeDescription, List<Plugin> plugins) Constructors in net.bytebuddy.build with parameters of type PluginConstructor parameters in net.bytebuddy.build with type arguments of type PluginModifierConstructorDescriptionprivate
Preprocessor
(Plugin.Engine.Source.Element element, String typeName, ClassFileLocator classFileLocator, TypePool typePool, Plugin.Engine.Listener listener, List<Plugin> plugins, List<Plugin.WithPreprocessor> preprocessors) Creates a new preprocessor.protected
Resolved
(Constructor<? extends Plugin> constructor, List<?> arguments) Creates a new resolved constructor.protected
Unresolved
(Class<? extends Plugin> type) Creates a new unresolved constructor.UsingReflection
(Class<? extends Plugin> type) Creates a plugin factory that uses reflection for creating a plugin.protected
UsingReflection
(Class<? extends Plugin> type, List<Plugin.Factory.UsingReflection.ArgumentResolver> argumentResolvers) Creates a plugin factory that uses reflection for creating a plugin. -
Uses of Plugin in net.bytebuddy.build.maven
Methods in net.bytebuddy.build.maven with parameters of type PluginModifier and TypeMethodDescriptionvoid
void
ByteBuddyMojo.TransformationLogger.onError
(TypeDescription typeDescription, Plugin plugin, Throwable throwable) Method parameters in net.bytebuddy.build.maven with type arguments of type PluginModifier and TypeMethodDescriptionvoid
ByteBuddyMojo.TransformationLogger.onTransformation
(TypeDescription typeDescription, List<Plugin> plugins)