Package net.bytebuddy.build.maven
Class ByteBuddyMojo.Transformer
- java.lang.Object
-
- net.bytebuddy.build.maven.ByteBuddyMojo.Transformer
-
- Direct Known Subclasses:
ByteBuddyMojo.Transformer.ForConfiguredPlugin,ByteBuddyMojo.Transformer.ForDiscoveredPlugin
- Enclosing class:
- ByteBuddyMojo
protected abstract static class ByteBuddyMojo.Transformer extends java.lang.ObjectA transformer that is applied during the plugin's execution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classByteBuddyMojo.Transformer.ForConfiguredPluginA transformer for an explicitly configured plugin.protected static classByteBuddyMojo.Transformer.ForDiscoveredPluginA transformer for a discovered plugin.
-
Constructor Summary
Constructors Modifier Constructor Description protectedTransformer()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract java.lang.StringgetPlugin()Returns the name of the plugin to apply.protected abstract java.util.List<? extends Plugin.Factory.UsingReflection.ArgumentResolver>toArgumentResolvers()Returns the argument resolvers to use.protected abstract java.lang.ClassLoadertoClassLoader(ClassLoaderResolver classLoaderResolver, java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String packaging)Resolves the class loader to use for resolving the plugin.
-
-
-
Method Detail
-
getPlugin
protected abstract java.lang.String getPlugin() throws org.apache.maven.plugin.MojoExecutionExceptionReturns the name of the plugin to apply.- Returns:
- The name of the plugin to apply.
- Throws:
org.apache.maven.plugin.MojoExecutionException- If the plugin name was not set.
-
toArgumentResolvers
protected abstract java.util.List<? extends Plugin.Factory.UsingReflection.ArgumentResolver> toArgumentResolvers()
Returns the argument resolvers to use.- Returns:
- The argument resolvers to use.
-
toClassLoader
protected abstract java.lang.ClassLoader toClassLoader(ClassLoaderResolver classLoaderResolver, java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String packaging) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
Resolves the class loader to use for resolving the plugin.- Parameters:
classLoaderResolver- The class loader resolver to use.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.
-
-