Package | Description |
---|---|
net.bytebuddy.agent.builder |
An agent builder is used to easily implement load-time class-transformations using a Java agent.
|
Modifier and Type | Interface and Description |
---|---|
protected static interface |
AgentBuilder.Default.Transformation
A transformation serves as a handler for modifying a class.
|
Modifier and Type | Class and Description |
---|---|
static class |
AgentBuilder.Default.Transformation.Compound
A compound transformation that applied several transformation in the given order and applies the first active transformation.
|
static class |
AgentBuilder.Default.Transformation.Ignored
A transformation that does not attempt to transform any type.
|
static class |
AgentBuilder.Default.Transformation.Simple
A simple, active transformation.
|
static class |
AgentBuilder.RawMatcher.Conjunction
A conjunction of two raw matchers.
|
static class |
AgentBuilder.RawMatcher.Disjunction
A disjunction of two raw matchers.
|
static class |
AgentBuilder.RawMatcher.ForElementMatchers
A raw matcher implementation that checks a
TypeDescription
and its ClassLoader against two suitable matchers in order to determine if the matched
type should be instrumented. |
Modifier and Type | Field and Description |
---|---|
protected AgentBuilder.RawMatcher |
AgentBuilder.Default.ignoredTypeMatcher
Identifies types that should not be instrumented.
|
Modifier and Type | Method and Description |
---|---|
T |
AgentBuilder.Matchable.and(AgentBuilder.RawMatcher rawMatcher)
Defines a matching that is positive if both the previous matcher and the supplied matcher are matched.
|
AgentBuilder.Ignored |
AgentBuilder.Default.Ignoring.and(AgentBuilder.RawMatcher rawMatcher) |
AgentBuilder.Identified.Narrowable |
AgentBuilder.Default.Transforming.and(AgentBuilder.RawMatcher rawMatcher) |
protected void |
AgentBuilder.RedefinitionStrategy.Collector.consider(AgentBuilder.RawMatcher ignoredTypeMatcher,
AgentBuilder.Listener listener,
TypeDescription typeDescription,
Class<?> type,
Class<?> classBeingRedefined,
JavaModule module,
boolean unmodifiable)
Does consider the retransformation or redefinition of a loaded type.
|
protected void |
AgentBuilder.RedefinitionStrategy.Collector.consider(AgentBuilder.RawMatcher ignoredTypeMatcher,
AgentBuilder.Listener listener,
TypeDescription typeDescription,
Class<?> type,
JavaModule module)
Does consider the retransformation or redefinition of a loaded type without a loaded type representation.
|
AgentBuilder.Ignored |
AgentBuilder.ignore(AgentBuilder.RawMatcher rawMatcher)
Excludes any type that is matched by the raw matcher provided to this method.
|
AgentBuilder.Ignored |
AgentBuilder.Default.ignore(AgentBuilder.RawMatcher rawMatcher) |
AgentBuilder.Ignored |
AgentBuilder.Default.Delegator.ignore(AgentBuilder.RawMatcher rawMatcher) |
ResettableClassFileTransformer |
AgentBuilder.Default.ExecutingTransformer.Factory.make(ByteBuddy byteBuddy,
AgentBuilder.Listener listener,
AgentBuilder.PoolStrategy poolStrategy,
AgentBuilder.TypeStrategy typeStrategy,
AgentBuilder.LocationStrategy locationStrategy,
AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy,
AgentBuilder.InitializationStrategy initializationStrategy,
AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy,
AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy,
AgentBuilder.DescriptionStrategy descriptionStrategy,
AgentBuilder.FallbackStrategy fallbackStrategy,
AgentBuilder.RawMatcher ignoredTypeMatcher,
AgentBuilder.Default.Transformation transformation,
AgentBuilder.CircularityLock circularityLock)
Creates a new class file transformer for the current VM.
|
ResettableClassFileTransformer |
AgentBuilder.Default.ExecutingTransformer.Factory.ForJava9CapableVm.make(ByteBuddy byteBuddy,
AgentBuilder.Listener listener,
AgentBuilder.PoolStrategy poolStrategy,
AgentBuilder.TypeStrategy typeStrategy,
AgentBuilder.LocationStrategy locationStrategy,
AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy,
AgentBuilder.InitializationStrategy initializationStrategy,
AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy,
AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy,
AgentBuilder.DescriptionStrategy descriptionStrategy,
AgentBuilder.FallbackStrategy fallbackStrategy,
AgentBuilder.RawMatcher ignoredTypeMatcher,
AgentBuilder.Default.Transformation transformation,
AgentBuilder.CircularityLock circularityLock) |
ResettableClassFileTransformer |
AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm.make(ByteBuddy byteBuddy,
AgentBuilder.Listener listener,
AgentBuilder.PoolStrategy poolStrategy,
AgentBuilder.TypeStrategy typeStrategy,
AgentBuilder.LocationStrategy locationStrategy,
AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy,
AgentBuilder.InitializationStrategy initializationStrategy,
AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy,
AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy,
AgentBuilder.DescriptionStrategy descriptionStrategy,
AgentBuilder.FallbackStrategy fallbackStrategy,
AgentBuilder.RawMatcher ignoredTypeMatcher,
AgentBuilder.Default.Transformation transformation,
AgentBuilder.CircularityLock circularityLock) |
T |
AgentBuilder.Matchable.or(AgentBuilder.RawMatcher rawMatcher)
Defines a matching that is positive if the previous matcher or the supplied matcher are matched.
|
AgentBuilder.Ignored |
AgentBuilder.Default.Ignoring.or(AgentBuilder.RawMatcher rawMatcher) |
AgentBuilder.Identified.Narrowable |
AgentBuilder.Default.Transforming.or(AgentBuilder.RawMatcher rawMatcher) |
AgentBuilder.Identified.Narrowable |
AgentBuilder.type(AgentBuilder.RawMatcher matcher)
Matches a type being loaded in order to apply the supplied
AgentBuilder.Transformer s before loading this type. |
AgentBuilder.Identified.Narrowable |
AgentBuilder.Default.type(AgentBuilder.RawMatcher matcher) |
AgentBuilder.Identified.Narrowable |
AgentBuilder.Default.Delegator.type(AgentBuilder.RawMatcher matcher) |
Copyright © 2014–2016. All rights reserved.