Uses of Interface
net.bytebuddy.implementation.LoadedTypeInitializer
-
Packages that use LoadedTypeInitializer 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 aDynamicType
by enhancing a given type.net.bytebuddy.implementation The implementation package contains any logic for intercepting method calls. -
-
Uses of LoadedTypeInitializer in net.bytebuddy.agent.builder
Classes in net.bytebuddy.agent.builder that implement LoadedTypeInitializer Modifier and Type Class Description protected static class
AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.InjectingInitializer
A type initializer that injects all auxiliary types of the instrumented type.Fields in net.bytebuddy.agent.builder with type parameters of type LoadedTypeInitializer Modifier and Type Field Description private java.util.Map<TypeDescription,LoadedTypeInitializer>
AgentBuilder.InitializationStrategy.SelfInjection.Dispatcher.InjectingInitializer. loadedTypeInitializers
The instrumented types and auxiliary types mapped to their loaded type initializers. -
Uses of LoadedTypeInitializer in net.bytebuddy.dynamic
Fields in net.bytebuddy.dynamic declared as LoadedTypeInitializer Modifier and Type Field Description protected LoadedTypeInitializer
DynamicType.Default. loadedTypeInitializer
The loaded type initializer for this dynamic type.Methods in net.bytebuddy.dynamic that return types with arguments of type LoadedTypeInitializer Modifier and Type Method Description java.util.Map<TypeDescription,LoadedTypeInitializer>
DynamicType.Default. getLoadedTypeInitializers()
Returns a map of all loaded type initializers for the main type and all auxiliary types, if any.java.util.Map<TypeDescription,LoadedTypeInitializer>
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 LoadedTypeInitializer Modifier and Type Method Description DynamicType.Builder<U>
DynamicType.Builder.AbstractBase.Adapter. initializer(LoadedTypeInitializer loadedTypeInitializer)
Executes the supplied loaded type initializer when loading the created instrumented type.DynamicType.Builder<U>
DynamicType.Builder.AbstractBase.Delegator. initializer(LoadedTypeInitializer loadedTypeInitializer)
Executes the supplied loaded type initializer when loading the created instrumented type.DynamicType.Builder<T>
DynamicType.Builder. initializer(LoadedTypeInitializer loadedTypeInitializer)
Executes the supplied loaded type initializer when loading the created instrumented type.void
NexusAccessor.Dispatcher.Available. register(java.lang.String name, java.lang.ClassLoader classLoader, java.lang.ref.ReferenceQueue<? super java.lang.ClassLoader> referenceQueue, int identification, LoadedTypeInitializer loadedTypeInitializer)
Registers a type initializer with the system class loader's nexus.void
NexusAccessor.Dispatcher. register(java.lang.String name, java.lang.ClassLoader classLoader, java.lang.ref.ReferenceQueue<? super java.lang.ClassLoader> referenceQueue, int identification, LoadedTypeInitializer loadedTypeInitializer)
Registers a type initializer with the system class loader's nexus.void
NexusAccessor.Dispatcher.Unavailable. register(java.lang.String name, java.lang.ClassLoader classLoader, java.lang.ref.ReferenceQueue<? super java.lang.ClassLoader> referenceQueue, int identification, LoadedTypeInitializer loadedTypeInitializer)
Registers a type initializer with the system class loader's nexus.void
NexusAccessor. register(java.lang.String name, java.lang.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<S>
DynamicType.Builder.AbstractBase. require(TypeDescription type, byte[] binaryRepresentation, LoadedTypeInitializer typeInitializer)
Explicitly requires another dynamic type for the creation of this type.DynamicType.Builder<T>
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 LoadedTypeInitializer Constructor Description Default(TypeDescription typeDescription, byte[] binaryRepresentation, LoadedTypeInitializer loadedTypeInitializer, java.util.List<? extends DynamicType> auxiliaryTypes)
Creates a new dynamic type.Loaded(TypeDescription typeDescription, byte[] typeByte, LoadedTypeInitializer loadedTypeInitializer, java.util.List<? extends DynamicType> auxiliaryTypes, java.util.Map<TypeDescription,java.lang.Class<?>> loadedTypes)
Creates a new representation of a loaded dynamic type.Unloaded(TypeDescription typeDescription, byte[] binaryRepresentation, LoadedTypeInitializer loadedTypeInitializer, java.util.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 LoadedTypeInitializer Modifier and Type Field Description private LoadedTypeInitializer
InstrumentedType.Default. loadedTypeInitializer
The loaded type initializer of the instrumented type.private LoadedTypeInitializer
InstrumentedType.Frozen. loadedTypeInitializer
The type's loaded type initializer.private LoadedTypeInitializer
MethodRegistry.Default.Compiled. loadedTypeInitializer
The loaded type initializer of the instrumented type.private LoadedTypeInitializer
MethodRegistry.Default.Prepared. loadedTypeInitializer
The loaded type initializer of the instrumented type.protected LoadedTypeInitializer
TypeWriter.Default. loadedTypeInitializer
The loaded type initializer to apply onto the created type after loading.Methods in net.bytebuddy.dynamic.scaffold that return LoadedTypeInitializer Modifier and Type Method Description LoadedTypeInitializer
InstrumentedType.Default. getLoadedTypeInitializer()
Returns theLoadedTypeInitializer
s that were registered for this instrumented type.LoadedTypeInitializer
InstrumentedType.Frozen. getLoadedTypeInitializer()
Returns theLoadedTypeInitializer
s that were registered for this instrumented type.LoadedTypeInitializer
InstrumentedType. getLoadedTypeInitializer()
Returns theLoadedTypeInitializer
s that were registered for this instrumented type.LoadedTypeInitializer
MethodRegistry.Compiled. getLoadedTypeInitializer()
Returns the loaded type initializer of the instrumented type.LoadedTypeInitializer
MethodRegistry.Default.Compiled. getLoadedTypeInitializer()
Returns the loaded type initializer of the instrumented type.LoadedTypeInitializer
MethodRegistry.Default.Prepared. getLoadedTypeInitializer()
Returns the loaded type initializer of the instrumented type.LoadedTypeInitializer
MethodRegistry.Prepared. getLoadedTypeInitializer()
Returns the loaded type initializer of the instrumented type.Methods in net.bytebuddy.dynamic.scaffold with parameters of type LoadedTypeInitializer Modifier and Type Method Description InstrumentedType.WithFlexibleName
InstrumentedType.Default. withInitializer(LoadedTypeInitializer loadedTypeInitializer)
Creates a new instrumented type that includes the givenLoadedTypeInitializer
.InstrumentedType.WithFlexibleName
InstrumentedType.Frozen. withInitializer(LoadedTypeInitializer loadedTypeInitializer)
Creates a new instrumented type that includes the givenLoadedTypeInitializer
.InstrumentedType.WithFlexibleName
InstrumentedType.WithFlexibleName. withInitializer(LoadedTypeInitializer loadedTypeInitializer)
Creates a new instrumented type that includes the givenLoadedTypeInitializer
.InstrumentedType
InstrumentedType. withInitializer(LoadedTypeInitializer loadedTypeInitializer)
Creates a new instrumented type that includes the givenLoadedTypeInitializer
.Constructors in net.bytebuddy.dynamic.scaffold with parameters of type LoadedTypeInitializer Constructor Description Compiled(TypeDescription instrumentedType, LoadedTypeInitializer loadedTypeInitializer, TypeInitializer typeInitializer, MethodList<?> methods, java.util.LinkedHashMap<MethodDescription,MethodRegistry.Default.Compiled.Entry> implementations, boolean supportsBridges)
Creates a new compiled version of a default method registry.Default(java.lang.String name, int modifiers, TypeDescription.Generic superClass, java.util.List<? extends TypeVariableToken> typeVariables, java.util.List<? extends TypeDescription.Generic> interfaceTypes, java.util.List<? extends FieldDescription.Token> fieldTokens, java.util.List<? extends MethodDescription.Token> methodTokens, java.util.List<? extends RecordComponentDescription.Token> recordComponentTokens, java.util.List<? extends AnnotationDescription> annotationDescriptions, TypeInitializer typeInitializer, LoadedTypeInitializer loadedTypeInitializer, TypeDescription declaringType, MethodDescription.InDefinedShape enclosingMethod, TypeDescription enclosingType, java.util.List<? extends TypeDescription> declaredTypes, java.util.List<? extends TypeDescription> permittedSubclasses, boolean anonymousClass, boolean localClass, boolean record, TypeDescription nestHost, java.util.List<? extends TypeDescription> nestMembers)
Creates a new instrumented type.Default(TypeDescription instrumentedType, ClassFileVersion classFileVersion, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, java.util.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, ClassWriterStrategy classWriterStrategy, TypePool typePool)
Creates a new default type writer.ForCreation(TypeDescription instrumentedType, ClassFileVersion classFileVersion, TypeWriter.FieldPool fieldPool, TypeWriter.MethodPool methodPool, TypeWriter.RecordComponentPool recordComponentPool, java.util.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, ClassWriterStrategy classWriterStrategy, 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, TypeWriter.RecordComponentPool recordComponentPool, java.util.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, ClassWriterStrategy classWriterStrategy, TypePool typePool, TypeDescription originalType, ClassFileLocator classFileLocator)
Creates a new inlining type writer.Frozen(TypeDescription typeDescription, LoadedTypeInitializer loadedTypeInitializer)
Creates a new frozen representation of an instrumented type.Prepared(java.util.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.WithFullProcessing(TypeDescription instrumentedType, ClassFileVersion classFileVersion, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, java.util.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, ClassWriterStrategy classWriterStrategy, 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 LoadedTypeInitializer Modifier and Type Method Description DynamicType.Builder<T>
DecoratingDynamicTypeBuilder. 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 LoadedTypeInitializer Modifier and Type Class Description static class
LoadedTypeInitializer.Compound
A compound loaded type initializer that combines several type initializers.static class
LoadedTypeInitializer.ForStaticField
A type initializer for setting a value for a static field.static class
LoadedTypeInitializer.NoOp
A loaded type initializer that does not do anything.Fields in net.bytebuddy.implementation with type parameters of type LoadedTypeInitializer Modifier and Type Field Description private java.util.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 LoadedTypeInitializer Constructor Description Compound(LoadedTypeInitializer... loadedTypeInitializer)
Creates a new compound loaded type initializer.Constructor parameters in net.bytebuddy.implementation with type arguments of type LoadedTypeInitializer Constructor Description Compound(java.util.List<? extends LoadedTypeInitializer> loadedTypeInitializers)
Creates a new compound loaded type initializer.
-