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.ResolutionA resolution to a transformation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceAgentBuilder.Default.Transformation.Resolution.DecoratableA resolution that can be decorated by a transformer.static classAgentBuilder.Default.Transformation.Resolution.SortDescribes a specific sort of aAgentBuilder.Default.Transformation.Resolution.static classAgentBuilder.Default.Transformation.Resolution.UnresolvedA 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 returnsnullif a type is not to be transformed.AgentBuilder.Default.Transformation.ResolutionasDecoratorOf(AgentBuilder.Default.Transformation.Resolution resolution)Resolves this resolution as a decorator of the supplied resolution.AgentBuilder.Default.Transformation.Resolution.SortgetSort()Returns the sort of this resolution.AgentBuilder.Default.Transformation.Resolutionprepend(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 returnsnullif 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
nullif no transformation is attempted.
-
-