@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.Default.Transformation.Resolution.Unresolved extends Object implements AgentBuilder.Default.Transformation.Resolution
AgentBuilder.Default.Transformation.Resolution.Decoratable, AgentBuilder.Default.Transformation.Resolution.Sort, AgentBuilder.Default.Transformation.Resolution.Unresolved
Modifier | Constructor and Description |
---|---|
protected |
Unresolved(TypeDescription typeDescription,
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.InjectionStrategy injectionStrategy,
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.
|
protected Unresolved(TypeDescription typeDescription, 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.InjectionStrategy injectionStrategy, 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.injectionStrategy
- The 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.Copyright © 2014–2019. All rights reserved.