Package net.bytebuddy.agent.builder
Interface AgentBuilder.Identified.Extendable
-
- All Superinterfaces:
AgentBuilder
,AgentBuilder.Identified
- All Known Implementing Classes:
AgentBuilder.Default.Transforming
- Enclosing interface:
- AgentBuilder.Identified
public static interface AgentBuilder.Identified.Extendable extends AgentBuilder, AgentBuilder.Identified
This interface is used to allow for optionally providing severalAgentBuilder.Transformer
to applied when a matcher identifies a type to be instrumented. Any subsequent transformers are applied in the order they are registered.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder
AgentBuilder.CircularityLock, AgentBuilder.Default, AgentBuilder.DescriptionStrategy, AgentBuilder.FallbackStrategy, AgentBuilder.Identified, AgentBuilder.Ignored, AgentBuilder.InitializationStrategy, AgentBuilder.InstallationListener, AgentBuilder.LambdaInstrumentationStrategy, AgentBuilder.Listener, AgentBuilder.LocationStrategy, AgentBuilder.Matchable<T extends AgentBuilder.Matchable<T>>, AgentBuilder.PoolStrategy, AgentBuilder.RawMatcher, AgentBuilder.RedefinitionListenable, AgentBuilder.RedefinitionStrategy, AgentBuilder.Transformer, AgentBuilder.TypeStrategy
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.Identified
AgentBuilder.Identified.Extendable, AgentBuilder.Identified.Narrowable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AgentBuilder
asDecorator()
Applies the specified transformation as a decorative transformation.-
Methods inherited from interface net.bytebuddy.agent.builder.AgentBuilder
assureReadEdgeFromAndTo, assureReadEdgeFromAndTo, assureReadEdgeFromAndTo, assureReadEdgeTo, assureReadEdgeTo, assureReadEdgeTo, disableBootstrapInjection, disableClassFormatChanges, disableNativeMethodPrefix, enableBootstrapInjection, enableNativeMethodPrefix, enableUnsafeBootstrapInjection, ignore, ignore, ignore, ignore, installOn, installOnByteBuddyAgent, makeRaw, type, type, type, type, with, with, with, with, with, with, with, with, with, with, with, with
-
Methods inherited from interface net.bytebuddy.agent.builder.AgentBuilder.Identified
transform
-
-
-
-
Method Detail
-
asDecorator
AgentBuilder asDecorator()
Applies the specified transformation as a decorative transformation. For a decorative transformation, the supplied transformer is prepended to any previous transformation that also matches the instrumented type, i.e. both transformations are supplied. This procedure is repeated until a transformer is reached that matches the instrumented type but is not defined as decorating after which no further transformations are considered. If all matching transformations are declared as decorating, all matching transformers are applied.
Note: A decorating transformer is applied after previously registered transformers.
- Returns:
- A new instance of this agent builder with the specified transformation being applied as a decorator.
-
-