Uses of Interface
net.bytebuddy.implementation.LoadedTypeInitializer
Packages that use LoadedTypeInitializer
Package
Description
An agent builder is used to easily implement load-time class-transformations using a Java agent.
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.
This package contains helper types and implementations that are responsible for the actual writing of a byte array
representing a Java class.
All classes and types in this package are related to creating a
DynamicType
by
enhancing a given type.The implementation package contains any logic for intercepting method calls.
A package containing visitor classes for ASM.
-
Uses of LoadedTypeInitializer in net.bytebuddy.agent.builder
Classes in net.bytebuddy.agent.builder that implement LoadedTypeInitializerModifier and TypeClassDescriptionprotected static class
A type initializer that injects all auxiliary types of the instrumented type.Fields in net.bytebuddy.agent.builder with type parameters of type LoadedTypeInitializerModifier and TypeFieldDescriptionprivate final Map
<TypeDescription, LoadedTypeInitializer> AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.InjectingInitializer.loadedTypeInitializers
The instrumented types and auxiliary types mapped to their loaded type initializers.Methods in net.bytebuddy.agent.builder that return LoadedTypeInitializerModifier and TypeMethodDescriptionAgentBuilder.Transformer.ForAdvice.LazyDynamicType.getLoadedTypeInitializer()
Returns the loaded type initializer of this dynamic type.Constructor parameters in net.bytebuddy.agent.builder with type arguments of type LoadedTypeInitializerModifierConstructorDescriptionprotected
InjectingInitializer
(TypeDescription instrumentedType, Set<TypeDescription> auxiliaryTypes, ClassFileLocator classFileLocator, Map<TypeDescription, LoadedTypeInitializer> loadedTypeInitializers, ClassInjector classInjector) Creates a new injection initializer. -
Uses of LoadedTypeInitializer in net.bytebuddy.dynamic
Fields in net.bytebuddy.dynamic declared as LoadedTypeInitializerModifier and TypeFieldDescriptionprotected final LoadedTypeInitializer
DynamicType.Default.loadedTypeInitializer
The loaded type initializer for this dynamic type.Methods in net.bytebuddy.dynamic that return LoadedTypeInitializerModifier and TypeMethodDescriptionDynamicType.Default.getLoadedTypeInitializer()
Returns the loaded type initializer of this dynamic type.DynamicType.getLoadedTypeInitializer()
Returns the loaded type initializer of this dynamic type.Methods in net.bytebuddy.dynamic that return types with arguments of type LoadedTypeInitializerModifier and TypeMethodDescriptionDynamicType.AbstractBase.getLoadedTypeInitializers()
Returns a map of all loaded type initializers for the main type and all auxiliary types, if any.DynamicType.getLoadedTypeInitializers()
Returns a map of all loaded type initializers for the main type and all auxiliary types, if any.Methods in net.bytebuddy.dynamic with parameters of type LoadedTypeInitializerModifier and TypeMethodDescriptionDynamicType.Builder.AbstractBase.Adapter.initializer
(LoadedTypeInitializer loadedTypeInitializer) Executes the supplied loaded type initializer when loading the created instrumented type.DynamicType.Builder.AbstractBase.Delegator.initializer
(LoadedTypeInitializer loadedTypeInitializer) Executes the supplied loaded type initializer when loading the created instrumented type.DynamicType.Builder.initializer
(LoadedTypeInitializer loadedTypeInitializer) Executes the supplied loaded type initializer when loading the created instrumented type.void
NexusAccessor.Dispatcher.Available.register
(String name, ClassLoader classLoader, ReferenceQueue<? super ClassLoader> referenceQueue, int identification, LoadedTypeInitializer loadedTypeInitializer) Registers a type initializer with the system class loader's nexus.void
NexusAccessor.Dispatcher.register
(String name, ClassLoader classLoader, ReferenceQueue<? super ClassLoader> referenceQueue, int identification, LoadedTypeInitializer loadedTypeInitializer) Registers a type initializer with the system class loader's nexus.void
NexusAccessor.Dispatcher.Unavailable.register
(String name, ClassLoader classLoader, ReferenceQueue<? super ClassLoader> referenceQueue, int identification, LoadedTypeInitializer loadedTypeInitializer) Registers a type initializer with the system class loader's nexus.void
NexusAccessor.register
(String name, ClassLoader classLoader, int identification, LoadedTypeInitializer loadedTypeInitializer) Registers a loaded type initializer in Byte Buddy'sNexus
which is injected into the system class loader.DynamicType.Builder.AbstractBase.require
(TypeDescription type, byte[] binaryRepresentation, LoadedTypeInitializer typeInitializer) Explicitly requires another dynamic type for the creation of this type.DynamicType.Builder.require
(TypeDescription type, byte[] binaryRepresentation, LoadedTypeInitializer typeInitializer) Explicitly requires another dynamic type for the creation of this type.Constructors in net.bytebuddy.dynamic with parameters of type LoadedTypeInitializerModifierConstructorDescriptionDefault
(TypeDescription typeDescription, byte[] binaryRepresentation, LoadedTypeInitializer loadedTypeInitializer, List<? extends DynamicType> auxiliaryTypes) Creates a new dynamic type.protected
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. -
Uses of LoadedTypeInitializer in net.bytebuddy.dynamic.scaffold
Fields in net.bytebuddy.dynamic.scaffold declared as LoadedTypeInitializerModifier and TypeFieldDescriptionprivate final LoadedTypeInitializer
InstrumentedType.Default.loadedTypeInitializer
The loaded type initializer of the instrumented type.private final LoadedTypeInitializer
InstrumentedType.Frozen.loadedTypeInitializer
The type's loaded type initializer.private final LoadedTypeInitializer
MethodRegistry.Default.Compiled.loadedTypeInitializer
The loaded type initializer of the instrumented type.private final LoadedTypeInitializer
MethodRegistry.Default.Prepared.loadedTypeInitializer
The loaded type initializer of the instrumented type.protected final LoadedTypeInitializer
TypeWriter.Default.loadedTypeInitializer
The loaded type initializer to apply onto the created type after loading.Methods in net.bytebuddy.dynamic.scaffold that return LoadedTypeInitializerModifier and TypeMethodDescriptionInstrumentedType.Default.getLoadedTypeInitializer()
Returns theLoadedTypeInitializer
s that were registered for this instrumented type.InstrumentedType.Frozen.getLoadedTypeInitializer()
Returns theLoadedTypeInitializer
s that were registered for this instrumented type.InstrumentedType.getLoadedTypeInitializer()
Returns theLoadedTypeInitializer
s that were registered for this instrumented type.MethodRegistry.Compiled.getLoadedTypeInitializer()
Returns the loaded type initializer of the instrumented type.MethodRegistry.Default.Compiled.getLoadedTypeInitializer()
Returns the loaded type initializer of the instrumented type.MethodRegistry.Default.Prepared.getLoadedTypeInitializer()
Returns the loaded type initializer of the instrumented type.MethodRegistry.Prepared.getLoadedTypeInitializer()
Returns the loaded type initializer of the instrumented type.TypeWriter.Default.ForCreation.ImplementationContextClassVisitor.getLoadedTypeInitializer()
TypeWriter.Default.ForInlining.RegistryContextClassVisitor.getLoadedTypeInitializer()
Methods in net.bytebuddy.dynamic.scaffold with parameters of type LoadedTypeInitializerModifier and TypeMethodDescriptionInstrumentedType.Default.withInitializer
(LoadedTypeInitializer loadedTypeInitializer) Creates a new instrumented type that includes the givenLoadedTypeInitializer
.InstrumentedType.Frozen.withInitializer
(LoadedTypeInitializer loadedTypeInitializer) Creates a new instrumented type that includes the givenLoadedTypeInitializer
.InstrumentedType.WithFlexibleName.withInitializer
(LoadedTypeInitializer loadedTypeInitializer) Creates a new instrumented type that includes the givenLoadedTypeInitializer
.InstrumentedType.withInitializer
(LoadedTypeInitializer loadedTypeInitializer) Creates a new instrumented type that includes the givenLoadedTypeInitializer
.Constructors in net.bytebuddy.dynamic.scaffold with parameters of type LoadedTypeInitializerModifierConstructorDescriptionprotected
Compiled
(TypeDescription instrumentedType, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, MethodList<?> methods, LinkedHashMap<MethodDescription, MethodRegistry.Default.Compiled.Entry> implementations, boolean supportsBridges) Creates a new compiled version of a default method registry.protected
Default
(String name, int modifiers, TypeDescription.Generic superClass, List<? extends TypeVariableToken> typeVariables, List<? extends TypeDescription.Generic> interfaceTypes, List<? extends FieldDescription.Token> fieldTokens, Map<String, Object> auxiliaryFieldValues, List<? extends MethodDescription.Token> methodTokens, List<? extends RecordComponentDescription.Token> recordComponentTokens, List<? extends AnnotationDescription> annotationDescriptions, TypeInitializer typeInitializer, LoadedTypeInitializer loadedTypeInitializer, TypeDescription declaringType, MethodDescription.InDefinedShape enclosingMethod, TypeDescription enclosingType, List<? extends TypeDescription> declaredTypes, List<? extends TypeDescription> permittedSubclasses, boolean anonymousClass, boolean localClass, boolean record, TypeDescription nestHost, List<? extends TypeDescription> nestMembers) Creates a new instrumented type.protected
Default
(TypeDescription instrumentedType, ClassFileVersion classFileVersion, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, List<? extends DynamicType> auxiliaryTypes, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, MethodList<?> instrumentedMethods, RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, TypePool typePool) Creates a new default type writer.protected
ForCreation
(TypeDescription instrumentedType, ClassFileVersion classFileVersion, TypeWriter.FieldPool fieldPool, TypeWriter.MethodPool methodPool, TypeWriter.RecordComponentPool recordComponentPool, List<? extends DynamicType> auxiliaryTypes, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, MethodList<?> instrumentedMethods, RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, TypePool typePool) Creates a new default type writer for creating a new type that is not based on an existing class file.protected
ForInlining
(TypeDescription instrumentedType, ClassFileVersion classFileVersion, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, List<? extends DynamicType> auxiliaryTypes, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, MethodList<?> instrumentedMethods, RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, TypePool typePool, TypeDescription originalType, ClassFileLocator classFileLocator) Creates a new inlining type writer.protected
Frozen
(TypeDescription typeDescription, LoadedTypeInitializer loadedTypeInitializer) Creates a new frozen representation of an instrumented type.protected
Prepared
(LinkedHashMap<MethodDescription, MethodRegistry.Default.Prepared.Entry> implementations, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, TypeDescription instrumentedType, MethodGraph.Linked methodGraph, MethodList<?> methods) Creates a prepared version of a default method registry.protected
WithFullProcessing
(TypeDescription instrumentedType, ClassFileVersion classFileVersion, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, List<? extends DynamicType> auxiliaryTypes, FieldList<FieldDescription.InDefinedShape> fields, MethodList<?> methods, MethodList<?> instrumentedMethods, RecordComponentList<RecordComponentDescription.InDefinedShape> recordComponents, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, AsmClassReader.Factory classReaderFactory, AsmClassWriter.Factory classWriterFactory, TypePool typePool, TypeDescription originalType, ClassFileLocator classFileLocator, MethodRegistry.Prepared methodRegistry, Implementation.Target.Factory implementationTargetFactory, MethodRebaseResolver methodRebaseResolver) Creates a new inlining type writer that fully reprocesses a type. -
Uses of LoadedTypeInitializer in net.bytebuddy.dynamic.scaffold.inline
Methods in net.bytebuddy.dynamic.scaffold.inline with parameters of type LoadedTypeInitializerModifier and TypeMethodDescriptionDecoratingDynamicTypeBuilder.initializer
(LoadedTypeInitializer loadedTypeInitializer) Executes the supplied loaded type initializer when loading the created instrumented type. -
Uses of LoadedTypeInitializer in net.bytebuddy.implementation
Classes in net.bytebuddy.implementation that implement LoadedTypeInitializerModifier and TypeClassDescriptionstatic class
A compound loaded type initializer that combines several type initializers.static class
A type initializer for setting a value for a static field.static enum
A loaded type initializer that does not do anything.Fields in net.bytebuddy.implementation with type parameters of type LoadedTypeInitializerModifier and TypeFieldDescriptionprivate final List
<LoadedTypeInitializer> LoadedTypeInitializer.Compound.loadedTypeInitializers
The loaded type initializers that are represented by this compound type initializer.Constructors in net.bytebuddy.implementation with parameters of type LoadedTypeInitializerModifierConstructorDescriptionCompound
(LoadedTypeInitializer... loadedTypeInitializer) Creates a new compound loaded type initializer.Constructor parameters in net.bytebuddy.implementation with type arguments of type LoadedTypeInitializerModifierConstructorDescriptionCompound
(List<? extends LoadedTypeInitializer> loadedTypeInitializers) Creates a new compound loaded type initializer. -
Uses of LoadedTypeInitializer in net.bytebuddy.utility.visitor
Methods in net.bytebuddy.utility.visitor that return LoadedTypeInitializerModifier and TypeMethodDescriptionabstract LoadedTypeInitializer
ContextClassVisitor.getLoadedTypeInitializer()
Returns the loaded type initializer that this class visitor currently implies.