Package net.bytebuddy.build.maven
Class Transformation
- java.lang.Object
-
- net.bytebuddy.build.maven.AbstractUserConfiguration
-
- net.bytebuddy.build.maven.Transformation
-
public class Transformation extends AbstractUserConfiguration
A transformation specification to apply during the plugin's execution.
-
-
Field Summary
Fields Modifier and Type Field Description List<PluginArgument>
arguments
A list of arguments that are provided to the plugin for construction.String
plugin
The fully-qualified name of the plugin type.-
Fields inherited from class net.bytebuddy.build.maven.AbstractUserConfiguration
artifactId, groupId, packaging, version
-
-
Constructor Summary
Constructors Constructor Description Transformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPlugin()
Returns the plugin type name.String
getRawPlugin()
Returns the plugin name ornull
if it is not set.List<Plugin.Factory.UsingReflection.ArgumentResolver>
makeArgumentResolvers()
Creates the argument resolvers for the plugin's constructor by transforming the plugin arguments.-
Methods inherited from class net.bytebuddy.build.maven.AbstractUserConfiguration
asCoordinate, getArtifactId, getGroupId, getPackaging, getVersion
-
-
-
-
Field Detail
-
plugin
public String plugin
The fully-qualified name of the plugin type.
-
arguments
public List<PluginArgument> arguments
A list of arguments that are provided to the plugin for construction.
-
-
Method Detail
-
getPlugin
public String getPlugin() throws org.apache.maven.plugin.MojoExecutionException
Returns the plugin type name.- Returns:
- The plugin type name.
- Throws:
org.apache.maven.plugin.MojoExecutionException
- If the plugin name was not specified or is empty.
-
getRawPlugin
public String getRawPlugin()
Returns the plugin name ornull
if it is not set.- Returns:
- The configured plugin name.
-
makeArgumentResolvers
public List<Plugin.Factory.UsingReflection.ArgumentResolver> makeArgumentResolvers()
Creates the argument resolvers for the plugin's constructor by transforming the plugin arguments.- Returns:
- A list of argument resolvers.
-
-