protected static class ByteBuddyMojo.Transformer.ForConfiguredPlugin extends ByteBuddyMojo.Transformer
ByteBuddyMojo.Transformer.ForConfiguredPlugin, ByteBuddyMojo.Transformer.ForDiscoveredPlugin
Modifier | Constructor and Description |
---|---|
protected |
ForConfiguredPlugin(Transformation transformation)
Creates a new transformer for an explicitly configured plugin.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getPlugin()
Returns the name of the plugin to apply.
|
protected List<? extends Plugin.Factory.UsingReflection.ArgumentResolver> |
toArgumentResolvers()
Returns the argument resolvers to use.
|
protected ClassLoader |
toClassLoader(ClassLoaderResolver classLoaderResolver,
String groupId,
String artifactId,
String version,
String packaging)
Resolves the class loader to use for resolving the plugin.
|
protected ForConfiguredPlugin(Transformation transformation)
transformation
- The configured transformation.protected String getPlugin() throws org.apache.maven.plugin.MojoExecutionException
ByteBuddyMojo.Transformer
getPlugin
in class ByteBuddyMojo.Transformer
org.apache.maven.plugin.MojoExecutionException
- If the plugin name was not set.protected List<? extends Plugin.Factory.UsingReflection.ArgumentResolver> toArgumentResolvers()
ByteBuddyMojo.Transformer
toArgumentResolvers
in class ByteBuddyMojo.Transformer
protected ClassLoader toClassLoader(ClassLoaderResolver classLoaderResolver, String groupId, String artifactId, String version, String packaging) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
ByteBuddyMojo.Transformer
toClassLoader
in class ByteBuddyMojo.Transformer
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.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.Copyright © 2014–2022. All rights reserved.