Package net.bytebuddy.agent.builder
Interface AgentBuilder.Default.Transformation.Resolution
-
- All Known Subinterfaces:
AgentBuilder.Default.Transformation.Resolution.Decoratable
- All Known Implementing Classes:
AgentBuilder.Default.Transformation.Resolution.Unresolved
,AgentBuilder.Default.Transformation.Simple.Resolution
- Enclosing interface:
- AgentBuilder.Default.Transformation
public static interface AgentBuilder.Default.Transformation.Resolution
A resolution to a transformation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
AgentBuilder.Default.Transformation.Resolution.Decoratable
A resolution that can be decorated by a transformer.static class
AgentBuilder.Default.Transformation.Resolution.Sort
Describes a specific sort of aAgentBuilder.Default.Transformation.Resolution
.static class
AgentBuilder.Default.Transformation.Resolution.Unresolved
A canonical implementation of a non-resolved resolution.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 returnsnull
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.
-
-
-
Method Detail
-
getSort
AgentBuilder.Default.Transformation.Resolution.Sort getSort()
Returns the sort of this resolution.- Returns:
- The sort of this resolution.
-
asDecoratorOf
AgentBuilder.Default.Transformation.Resolution asDecoratorOf(AgentBuilder.Default.Transformation.Resolution resolution)
Resolves this resolution as a decorator of the supplied resolution.- Parameters:
resolution
- The resolution for which this resolution should serve as a decorator.- Returns:
- A resolution where this resolution is applied as a decorator if this resolution is alive.
-
prepend
AgentBuilder.Default.Transformation.Resolution prepend(AgentBuilder.Default.Transformation.Resolution.Decoratable resolution)
Resolves this resolution as a decorator of the supplied resolution.- Parameters:
resolution
- The resolution for which this resolution should serve as a decorator.- Returns:
- A resolution where this resolution is applied as a decorator if this resolution is alive.
-
apply
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 returnsnull
if a type is not to be transformed.- Parameters:
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.- Returns:
- The class file of the transformed class or
null
if no transformation is attempted.
-
-