Package net.bytebuddy.build.maven
Class ByteBuddyMojo.Transformer.ForDiscoveredPlugin
java.lang.Object
net.bytebuddy.build.maven.ByteBuddyMojo.Transformer
net.bytebuddy.build.maven.ByteBuddyMojo.Transformer.ForDiscoveredPlugin
- Direct Known Subclasses:
ByteBuddyMojo.Transformer.ForDiscoveredPlugin.FromClassLoader
- Enclosing class:
ByteBuddyMojo.Transformer
protected static class ByteBuddyMojo.Transformer.ForDiscoveredPlugin
extends ByteBuddyMojo.Transformer
A transformer for a discovered plugin.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
A transformer for a discovered plugin from the class path.Nested classes/interfaces inherited from class net.bytebuddy.build.maven.ByteBuddyMojo.Transformer
ByteBuddyMojo.Transformer.ForConfiguredPlugin, ByteBuddyMojo.Transformer.ForDiscoveredPlugin
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForDiscoveredPlugin
(String plugin) Creates a new transformer for a discovered plugin. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns the name of the plugin to apply.protected List
<? extends Plugin.Factory.UsingReflection.ArgumentResolver> Returns the argument resolvers to use.protected ClassLoader
toClassLoader
(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
-
plugin
The name of the discovered plugin.
-
-
Constructor Details
-
ForDiscoveredPlugin
Creates a new transformer for a discovered plugin.- Parameters:
plugin
- The name of the discovered plugin.
-
-
Method Details
-
getPlugin
Description copied from class:ByteBuddyMojo.Transformer
Returns the name of the plugin to apply.- Specified by:
getPlugin
in classByteBuddyMojo.Transformer
- Returns:
- The name of the plugin to apply.
-
toArgumentResolvers
Description copied from class:ByteBuddyMojo.Transformer
Returns the argument resolvers to use.- Specified by:
toArgumentResolvers
in 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) Description copied from class:ByteBuddyMojo.Transformer
Resolves the class loader to use for resolving the plugin.- Specified by:
toClassLoader
in 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.
-