Package | Description |
---|---|
net.bytebuddy.agent.builder |
An agent builder is used to easily implement load-time class-transformations using a Java agent.
|
net.bytebuddy.dynamic |
This package contains classes and interfaces that are connected to writing the byte stream that represents a Java
type that is dynamically created and for loading this type into a running JVM process.
|
net.bytebuddy.dynamic.scaffold |
This package contains helper types and implementations that are responsible for the actual writing of a byte array
representing a Java class.
|
net.bytebuddy.dynamic.scaffold.inline |
All classes and types in this package are related to creating a
DynamicType by
enhancing a given type. |
net.bytebuddy.implementation |
The implementation package contains any logic for intercepting method calls.
|
net.bytebuddy.implementation.auxiliary |
Auxiliary types describe helper types that aid as a supplementary to a given
InstrumentedType . |
net.bytebuddy.implementation.bind.annotation |
This package contains annotations, types and classes that are responsible for binding a method to calling another
method by interpreting annotations that indicate how a method should be bound to another method.
|
Modifier and Type | Method and Description |
---|---|
void |
AgentBuilder.Listener.onTransformation(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
DynamicType dynamicType)
Invoked right before a successful transformation is applied.
|
void |
AgentBuilder.Listener.NoOp.onTransformation(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
DynamicType dynamicType) |
void |
AgentBuilder.Listener.Adapter.onTransformation(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
DynamicType dynamicType) |
void |
AgentBuilder.Listener.StreamWriting.onTransformation(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
DynamicType dynamicType) |
void |
AgentBuilder.Listener.ModuleReadEdgeCompleting.onTransformation(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
DynamicType dynamicType) |
void |
AgentBuilder.Listener.Compound.onTransformation(TypeDescription typeDescription,
ClassLoader classLoader,
JavaModule module,
DynamicType dynamicType) |
void |
AgentBuilder.InitializationStrategy.Dispatcher.register(DynamicType dynamicType,
ClassLoader classLoader,
AgentBuilder.InitializationStrategy.Dispatcher.InjectorFactory injectorFactory)
Registers a dynamic type for initialization and/or begins the initialization process.
|
void |
AgentBuilder.InitializationStrategy.NoOp.register(DynamicType dynamicType,
ClassLoader classLoader,
AgentBuilder.InitializationStrategy.Dispatcher.InjectorFactory injectorFactory) |
void |
AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.Split.register(DynamicType dynamicType,
ClassLoader classLoader,
AgentBuilder.InitializationStrategy.Dispatcher.InjectorFactory injectorFactory) |
void |
AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.Lazy.register(DynamicType dynamicType,
ClassLoader classLoader,
AgentBuilder.InitializationStrategy.Dispatcher.InjectorFactory injectorFactory) |
void |
AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.Eager.register(DynamicType dynamicType,
ClassLoader classLoader,
AgentBuilder.InitializationStrategy.Dispatcher.InjectorFactory injectorFactory) |
void |
AgentBuilder.InitializationStrategy.Minimal.register(DynamicType dynamicType,
ClassLoader classLoader,
AgentBuilder.InitializationStrategy.Dispatcher.InjectorFactory injectorFactory) |
Modifier and Type | Interface and Description |
---|---|
static interface |
DynamicType.Loaded<T>
A dynamic type that has been loaded into the running instance of the Java virtual machine.
|
static interface |
DynamicType.Unloaded<T>
A dynamic type that has not yet been loaded by a given
ClassLoader . |
Modifier and Type | Class and Description |
---|---|
static class |
DynamicType.Default
A default implementation of a dynamic type.
|
protected static class |
DynamicType.Default.Loaded<T>
A default implementation of a loaded dynamic type.
|
static class |
DynamicType.Default.Unloaded<T>
A default implementation of an unloaded dynamic type.
|
Modifier and Type | Field and Description |
---|---|
protected List<? extends DynamicType> |
DynamicType.Default.auxiliaryTypes
A list of auxiliary types for this dynamic type.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Unloaded<T> |
DynamicType.Unloaded.include(DynamicType... dynamicType)
Includes the provided dynamic types as auxiliary types of this instance.
|
DynamicType.Unloaded<T> |
DynamicType.Default.Unloaded.include(DynamicType... dynamicType) |
Map<TypeDescription,Class<?>> |
TypeResolutionStrategy.Resolved.initialize(DynamicType dynamicType,
ClassLoader classLoader,
ClassLoadingStrategy classLoadingStrategy)
Loads and initializes a dynamic type.
|
Map<TypeDescription,Class<?>> |
TypeResolutionStrategy.Passive.initialize(DynamicType dynamicType,
ClassLoader classLoader,
ClassLoadingStrategy classLoadingStrategy) |
Map<TypeDescription,Class<?>> |
TypeResolutionStrategy.Active.Resolved.initialize(DynamicType dynamicType,
ClassLoader classLoader,
ClassLoadingStrategy classLoadingStrategy) |
Map<TypeDescription,Class<?>> |
TypeResolutionStrategy.Lazy.initialize(DynamicType dynamicType,
ClassLoader classLoader,
ClassLoadingStrategy classLoadingStrategy) |
Map<TypeDescription,Class<?>> |
TypeResolutionStrategy.Disabled.initialize(DynamicType dynamicType,
ClassLoader classLoader,
ClassLoadingStrategy classLoadingStrategy) |
Modifier and Type | Method and Description |
---|---|
DynamicType.Unloaded<T> |
DynamicType.Unloaded.include(List<? extends DynamicType> dynamicTypes)
Includes the provided dynamic types as auxiliary types of this instance.
|
DynamicType.Unloaded<T> |
DynamicType.Default.Unloaded.include(List<? extends DynamicType> dynamicType) |
Constructor and Description |
---|
Default(TypeDescription typeDescription,
byte[] binaryRepresentation,
LoadedTypeInitializer loadedTypeInitializer,
List<? extends DynamicType> auxiliaryTypes)
Creates a new dynamic type.
|
Loaded(TypeDescription typeDescription,
byte[] typeByte,
LoadedTypeInitializer loadedTypeInitializer,
List<? extends DynamicType> auxiliaryTypes,
Map<TypeDescription,Class<?>> loadedTypes)
Creates a new representation of a loaded dynamic type.
|
Unloaded(TypeDescription typeDescription,
byte[] binaryRepresentation,
LoadedTypeInitializer loadedTypeInitializer,
List<? extends DynamicType> auxiliaryTypes,
TypeResolutionStrategy.Resolved typeResolutionStrategy)
Creates a new unloaded representation of a dynamic type.
|
Modifier and Type | Field and Description |
---|---|
protected List<? extends DynamicType> |
TypeWriter.Default.auxiliaryTypes
The explicit auxiliary types to add to the created type.
|
Modifier and Type | Method and Description |
---|---|
List<DynamicType> |
TypeWriter.Default.ForInlining.ContextRegistry.getAuxiliaryTypes()
Returns the auxiliary types that were registered during class creation.
|
Constructor and Description |
---|
Default(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
TypeWriter.FieldPool fieldPool,
List<? extends DynamicType> auxiliaryTypes,
MethodList<?> instrumentedMethods,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
TypePool typePool)
Creates a new default type writer.
|
ForCreation(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
TypeWriter.FieldPool fieldPool,
TypeWriter.MethodPool methodPool,
List<? extends DynamicType> auxiliaryTypes,
MethodList<?> instrumentedMethods,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
TypePool typePool)
Creates a new default type writer for creating a new type that is not based on an existing class file.
|
ForInlining(TypeDescription instrumentedType,
ClassFileVersion classFileVersion,
TypeWriter.FieldPool fieldPool,
MethodRegistry.Prepared methodRegistry,
Implementation.Target.Factory implementationTargetFactory,
List<DynamicType> explicitAuxiliaryTypes,
MethodList<?> instrumentedMethods,
LoadedTypeInitializer loadedTypeInitializer,
TypeInitializer typeInitializer,
TypeAttributeAppender typeAttributeAppender,
AsmVisitorWrapper asmVisitorWrapper,
AnnotationValueFilter.Factory annotationValueFilterFactory,
AnnotationRetention annotationRetention,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeValidation typeValidation,
TypePool typePool,
TypeDescription originalType,
ClassFileLocator classFileLocator,
MethodRebaseResolver methodRebaseResolver)
Creates a new default type writer for creating a new type that is not based on an existing class file.
|
UnresolvedType(byte[] binaryRepresentation,
List<? extends DynamicType> auxiliaryTypes)
Creates a new unresolved type.
|
Modifier and Type | Method and Description |
---|---|
List<DynamicType> |
MethodRebaseResolver.getAuxiliaryTypes()
Returns a (potentially empty) list of auxiliary types that are required by this method rebase resolver.
|
List<DynamicType> |
MethodRebaseResolver.Disabled.getAuxiliaryTypes() |
List<DynamicType> |
MethodRebaseResolver.Default.getAuxiliaryTypes() |
Constructor and Description |
---|
Default(Map<MethodDescription.InDefinedShape,MethodRebaseResolver.Resolution> resolutions,
List<DynamicType> dynamicTypes)
Creates a new default method rebased resolver.
|
Modifier and Type | Method and Description |
---|---|
List<DynamicType> |
Implementation.Context.ExtractableView.getAuxiliaryTypes()
Returns any
AuxiliaryType that was registered
with this Implementation.Context . |
List<DynamicType> |
Implementation.Context.Disabled.getAuxiliaryTypes() |
List<DynamicType> |
Implementation.Context.Default.getAuxiliaryTypes() |
Modifier and Type | Method and Description |
---|---|
DynamicType |
TypeProxy.make(String auxiliaryTypeName,
ClassFileVersion classFileVersion,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory) |
DynamicType |
TrivialType.make(String auxiliaryTypeName,
ClassFileVersion classFileVersion,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory) |
DynamicType |
MethodCallProxy.make(String auxiliaryTypeName,
ClassFileVersion classFileVersion,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory) |
DynamicType |
AuxiliaryType.make(String auxiliaryTypeName,
ClassFileVersion classFileVersion,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory)
Creates a new auxiliary type.
|
Modifier and Type | Method and Description |
---|---|
DynamicType |
Pipe.Binder.Redirection.make(String auxiliaryTypeName,
ClassFileVersion classFileVersion,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory) |
DynamicType |
Morph.Binder.RedirectionProxy.make(String auxiliaryTypeName,
ClassFileVersion classFileVersion,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory) |
DynamicType |
FieldProxy.Binder.AccessorProxy.make(String auxiliaryTypeName,
ClassFileVersion classFileVersion,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory) |
Copyright © 2014–2016. All rights reserved.