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.FromClassLoader
-
Nested classes/interfaces inherited from class net.bytebuddy.build.maven.ByteBuddyMojo.Transformer
ByteBuddyMojo.Transformer.ForConfiguredPlugin, ByteBuddyMojo.Transformer.ForDiscoveredPlugin
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.String>
classPath
The class path elements for loading this plugin.
-
Constructor Summary
Constructors Modifier Constructor Description protected
FromClassLoader(java.lang.String plugin, java.util.List<java.lang.String> classPath)
Creates a new transformer for a discovered plugin from the class path.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ClassLoader
toClassLoader(ClassLoaderResolver classLoaderResolver, java.util.Map<ByteBuddyMojo.Coordinate,java.lang.String> coordinates, 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.-
Methods inherited from class net.bytebuddy.build.maven.ByteBuddyMojo.Transformer.ForDiscoveredPlugin
getPlugin, toArgumentResolvers
-
-
-
-
Constructor Detail
-
FromClassLoader
protected FromClassLoader(java.lang.String plugin, java.util.List<java.lang.String> classPath)
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 Detail
-
toClassLoader
protected java.lang.ClassLoader toClassLoader(ClassLoaderResolver classLoaderResolver, java.util.Map<ByteBuddyMojo.Coordinate,java.lang.String> coordinates, java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String packaging)
Description copied from class:ByteBuddyMojo.Transformer
Resolves the class loader to use for resolving the plugin.- Overrides:
toClassLoader
in 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.
-
-