Package net.bytebuddy.build.maven
Class ByteBuddyMojo.Transformer.ForConfiguredPlugin
java.lang.Object
net.bytebuddy.build.maven.ByteBuddyMojo.Transformer
net.bytebuddy.build.maven.ByteBuddyMojo.Transformer.ForConfiguredPlugin
- Enclosing class:
ByteBuddyMojo.Transformer
protected static class ByteBuddyMojo.Transformer.ForConfiguredPlugin
extends ByteBuddyMojo.Transformer
A transformer for an explicitly configured plugin.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.bytebuddy.build.maven.ByteBuddyMojo.Transformer
ByteBuddyMojo.Transformer.ForConfiguredPlugin, ByteBuddyMojo.Transformer.ForDiscoveredPlugin -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedForConfiguredPlugin(Transformation transformation) Creates a new transformer for an explicitly configured plugin. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturns the name of the plugin to apply.protected List<? extends Plugin.Factory.UsingReflection.ArgumentResolver> Returns the argument resolvers to use.protected ClassLoadertoClassLoader(ClassLoaderResolver classLoaderResolver, Map<ByteBuddyMojo.Coordinate, String> coordinates, String groupId, String artifactId, String version, String packaging) Resolves the class loader to use for resolving the plugin.
-
Field Details
-
transformation
The configured transformation.
-
-
Constructor Details
-
ForConfiguredPlugin
Creates a new transformer for an explicitly configured plugin.- Parameters:
transformation- The configured transformation.
-
-
Method Details
-
getPlugin
Description copied from class:ByteBuddyMojo.TransformerReturns the name of the plugin to apply.- Specified by:
getPluginin classByteBuddyMojo.Transformer- Returns:
- The name of the plugin to apply.
- Throws:
org.apache.maven.plugin.MojoExecutionException- If the plugin name was not set.
-
toArgumentResolvers
Description copied from class:ByteBuddyMojo.TransformerReturns the argument resolvers to use.- Specified by:
toArgumentResolversin classByteBuddyMojo.Transformer- Returns:
- The argument resolvers to use.
-
toClassLoader
protected ClassLoader toClassLoader(ClassLoaderResolver classLoaderResolver, Map<ByteBuddyMojo.Coordinate, String> coordinates, String groupId, String artifactId, String version, String packaging) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionExceptionDescription copied from class:ByteBuddyMojo.TransformerResolves the class loader to use for resolving the plugin.- Specified by:
toClassLoaderin classByteBuddyMojo.Transformer- Parameters:
classLoaderResolver- The class loader resolver to use.coordinates- The managed coordinates of this project.groupId- The group id of this project.artifactId- The artifact id of this project.version- The version of this project.packaging- The packaging of this project.- Returns:
- The class loader to use.
- Throws:
org.apache.maven.plugin.MojoFailureException- If the class loader resolution yields a failure.org.apache.maven.plugin.MojoExecutionException- The the class loader resolution is incorrect.
-