Package net.bytebuddy.build.maven
Class ByteBuddyMojo.Transformer.ForDiscoveredPlugin.FromClassLoader
java.lang.Object
net.bytebuddy.build.maven.ByteBuddyMojo.Transformer
net.bytebuddy.build.maven.ByteBuddyMojo.Transformer.ForDiscoveredPlugin
net.bytebuddy.build.maven.ByteBuddyMojo.Transformer.ForDiscoveredPlugin.FromClassLoader
- Enclosing class:
ByteBuddyMojo.Transformer.ForDiscoveredPlugin
protected static class ByteBuddyMojo.Transformer.ForDiscoveredPlugin.FromClassLoader
extends ByteBuddyMojo.Transformer.ForDiscoveredPlugin
A transformer for a discovered plugin from the class path.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.bytebuddy.build.maven.ByteBuddyMojo.Transformer.ForDiscoveredPlugin
ByteBuddyMojo.Transformer.ForDiscoveredPlugin.FromClassLoaderNested classes/interfaces inherited from class net.bytebuddy.build.maven.ByteBuddyMojo.Transformer
ByteBuddyMojo.Transformer.ForConfiguredPlugin, ByteBuddyMojo.Transformer.ForDiscoveredPlugin -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFromClassLoader(String plugin, List<String> classPath) Creates a new transformer for a discovered plugin from the class path. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.Methods inherited from class net.bytebuddy.build.maven.ByteBuddyMojo.Transformer.ForDiscoveredPlugin
getPlugin, toArgumentResolvers
-
Field Details
-
classPath
The class path elements for loading this plugin.
-
-
Constructor Details
-
FromClassLoader
Creates a new transformer for a discovered plugin from the class path.- Parameters:
plugin- The name of the discovered plugin.classPath- The class path elements for loading this plugin.
-
-
Method Details
-
toClassLoader
protected ClassLoader toClassLoader(ClassLoaderResolver classLoaderResolver, Map<ByteBuddyMojo.Coordinate, String> coordinates, String groupId, String artifactId, String version, String packaging) Description copied from class:ByteBuddyMojo.TransformerResolves the class loader to use for resolving the plugin.- Overrides:
toClassLoaderin classByteBuddyMojo.Transformer.ForDiscoveredPlugin- 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.
-