@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.Default.Transformation.Resolution.Unresolved extends java.lang.Object implements AgentBuilder.Default.Transformation.Resolution
AgentBuilder.Default.Transformation.Resolution.Decoratable, AgentBuilder.Default.Transformation.Resolution.Sort, AgentBuilder.Default.Transformation.Resolution.Unresolved
Modifier and Type | Field and Description |
---|---|
private java.lang.ClassLoader |
classLoader
The unresolved type's class loader.
|
private boolean |
loaded
true if the type is already loaded. |
private JavaModule |
module
The non-transformed type's module or
null if the current VM does not support modules. |
private TypeDescription |
typeDescription
The type that is not transformed.
|
Modifier | Constructor and Description |
---|---|
protected |
Unresolved(TypeDescription typeDescription,
java.lang.ClassLoader classLoader,
JavaModule module,
boolean loaded)
Creates a new unresolved resolution.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
apply(AgentBuilder.InitializationStrategy initializationStrategy,
ClassFileLocator classFileLocator,
AgentBuilder.TypeStrategy typeStrategy,
ByteBuddy byteBuddy,
AgentBuilder.Default.NativeMethodStrategy methodNameTransformer,
AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy,
java.security.AccessControlContext accessControlContext,
AgentBuilder.Listener listener)
Transforms a type or returns
null if a type is not to be transformed. |
AgentBuilder.Default.Transformation.Resolution |
asDecoratorOf(AgentBuilder.Default.Transformation.Resolution resolution)
Resolves this resolution as a decorator of the supplied resolution.
|
AgentBuilder.Default.Transformation.Resolution.Sort |
getSort()
Returns the sort of this resolution.
|
AgentBuilder.Default.Transformation.Resolution |
prepend(AgentBuilder.Default.Transformation.Resolution.Decoratable resolution)
Resolves this resolution as a decorator of the supplied resolution.
|
private final TypeDescription typeDescription
private final java.lang.ClassLoader classLoader
private final JavaModule module
null
if the current VM does not support modules.private final boolean loaded
true
if the type is already loaded.protected Unresolved(TypeDescription typeDescription, java.lang.ClassLoader classLoader, JavaModule module, boolean loaded)
typeDescription
- The type that is not transformed.classLoader
- The unresolved type's class loader.module
- The non-transformed type's module or null
if the current VM does not support modules.loaded
- true
if the type is already loaded.public AgentBuilder.Default.Transformation.Resolution.Sort getSort()
getSort
in interface AgentBuilder.Default.Transformation.Resolution
public AgentBuilder.Default.Transformation.Resolution asDecoratorOf(AgentBuilder.Default.Transformation.Resolution resolution)
asDecoratorOf
in interface AgentBuilder.Default.Transformation.Resolution
resolution
- The resolution for which this resolution should serve as a decorator.public AgentBuilder.Default.Transformation.Resolution prepend(AgentBuilder.Default.Transformation.Resolution.Decoratable resolution)
prepend
in interface AgentBuilder.Default.Transformation.Resolution
resolution
- The resolution for which this resolution should serve as a decorator.public byte[] apply(AgentBuilder.InitializationStrategy initializationStrategy, ClassFileLocator classFileLocator, AgentBuilder.TypeStrategy typeStrategy, ByteBuddy byteBuddy, AgentBuilder.Default.NativeMethodStrategy methodNameTransformer, AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy, java.security.AccessControlContext accessControlContext, AgentBuilder.Listener listener)
null
if a type is not to be transformed.apply
in interface AgentBuilder.Default.Transformation.Resolution
initializationStrategy
- The initialization strategy to use.classFileLocator
- The class file locator to use.typeStrategy
- The definition handler to use.byteBuddy
- The Byte Buddy instance to use.methodNameTransformer
- The method name transformer to be used.bootstrapInjectionStrategy
- The bootstrap injection strategy to be used.accessControlContext
- The access control context to be used.listener
- The listener to be invoked to inform about an applied or non-applied transformation.null
if no transformation is attempted.