Uses of Interface
net.bytebuddy.dynamic.ClassFileLocator
Packages that use ClassFileLocator
Package
Description
Byte Buddy is a library for creating Java classes at runtime of a Java program.
An agent builder is used to easily implement load-time class-transformations using a Java agent.
The ASM package contains classes that are meant for direct interaction with the ASM API.
A package for types that allow for applying Byte Buddy transformation during a build process.
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 classes that are responsible for class loading of classes that are represented by
byte arrays.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.Classes of this package allow for the creating
TypeDescriptions without
loading any classes.This package contains utility classes for common use within any Byte Buddy logic.
-
Uses of ClassFileLocator in net.bytebuddy
Methods in net.bytebuddy with parameters of type ClassFileLocatorModifier and TypeMethodDescription<T> DynamicType.Builder<T> ByteBuddy.decorate(Class<T> type, ClassFileLocator classFileLocator) Decorates a type withAsmVisitorWrapperand allows adding attributes and annotations.<T> DynamicType.Builder<T> ByteBuddy.decorate(TypeDescription type, ClassFileLocator classFileLocator) Decorates a type withAsmVisitorWrapperand allows adding attributes and annotations.static ClassFileVersionClassFileVersion.of(Class<?> type, ClassFileLocator classFileLocator) Extracts a class' class version.static ClassFileVersionClassFileVersion.of(TypeDescription typeDescription, ClassFileLocator classFileLocator) Extracts a class' class version.<T> DynamicType.Builder<T> ByteBuddy.rebase(Class<T> type, ClassFileLocator classFileLocator) Rebases the given type where any intercepted method that is declared by the redefined type is preserved within the rebased type's class such that the class's original can be invoked from the new method implementations.<T> DynamicType.Builder<T> ByteBuddy.rebase(Class<T> type, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer) Rebases the given type where any intercepted method that is declared by the redefined type is preserved within the rebased type's class such that the class's original can be invoked from the new method implementations.ByteBuddy.rebase(Package aPackage, ClassFileLocator classFileLocator) Rebases a package.ByteBuddy.rebase(PackageDescription aPackage, ClassFileLocator classFileLocator) Rebases a package.<T> DynamicType.Builder<T> ByteBuddy.rebase(TypeDescription type, ClassFileLocator classFileLocator) Rebases the given type where any intercepted method that is declared by the redefined type is preserved within the rebased type's class such that the class's original can be invoked from the new method implementations.<T> DynamicType.Builder<T> ByteBuddy.rebase(TypeDescription type, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer) Rebases the given type where any intercepted method that is declared by the redefined type is preserved within the rebased type's class such that the class's original can be invoked from the new method implementations.<T> DynamicType.Builder<T> ByteBuddy.redefine(Class<T> type, ClassFileLocator classFileLocator) Redefines the given type where any intercepted method that is declared by the redefined type is fully replaced by the new implementation.<T> DynamicType.Builder<T> ByteBuddy.redefine(TypeDescription type, ClassFileLocator classFileLocator) Redefines the given type where any intercepted method that is declared by the redefined type is fully replaced by the new implementation. -
Uses of ClassFileLocator in net.bytebuddy.agent.builder
Fields in net.bytebuddy.agent.builder declared as ClassFileLocatorModifier and TypeFieldDescriptionprotected final ClassFileLocatorAgentBuilder.Default.classFileLocatorA class file locator to be used for additional lookup of globally available types.private final ClassFileLocatorAgentBuilder.Default.ExecutingTransformer.classFileLocatorA class file locator for locating globally available types.private final ClassFileLocatorAgentBuilder.LocationStrategy.Simple.classFileLocatorThe class file locator to query.private final ClassFileLocatorAgentBuilder.Transformer.ForAdvice.classFileLocatorThe class file locator to query for the advice class.Methods in net.bytebuddy.agent.builder that return ClassFileLocatorModifier and TypeMethodDescriptionAgentBuilder.LocationStrategy.classFileLocator(ClassLoader classLoader, JavaModule module) Creates a class file locator for a given class loader and module combination.AgentBuilder.LocationStrategy.Compound.classFileLocator(ClassLoader classLoader, JavaModule module) Creates a class file locator for a given class loader and module combination.AgentBuilder.LocationStrategy.NoOp.classFileLocator(ClassLoader classLoader, JavaModule module) Creates a class file locator for a given class loader and module combination.AgentBuilder.LocationStrategy.Simple.classFileLocator(ClassLoader classLoader, JavaModule module) Creates a class file locator for a given class loader and module combination.AgentBuilder.ClassFileBufferStrategy.resolve(String name, byte[] binaryRepresentation, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Resolves a class file locator for the class file buffer that is provided to the class file transformer.Methods in net.bytebuddy.agent.builder with parameters of type ClassFileLocatorModifier and TypeMethodDescriptionAgentBuilder.TypeStrategy.builder(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Creates a type builder for a given type.AgentBuilder.TypeStrategy.ForBuildEntryPoint.builder(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Creates a type builder for a given type.private byte[]AgentBuilder.Default.ExecutingTransformer.doTransform(JavaModule module, ClassLoader classLoader, String name, Class<?> classBeingRedefined, boolean loaded, ProtectionDomain protectionDomain, TypePool typePool, ClassFileLocator classFileLocator) Applies a transformation for a class that was captured by thisClassFileTransformer.AgentBuilder.Transformer.ForAdvice.include(ClassFileLocator... classFileLocator) Includes the supplied class file locators as a source for looking up an advice class or its dependencies.AgentBuilder.Default.ExecutingTransformer.Factory.ForJava9CapableVm.make(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, ClassFileLocator classFileLocator, AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy, AgentBuilder.InitializationStrategy initializationStrategy, AgentBuilder.InjectionStrategy injectionStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy, AgentBuilder.InstallationListener installationListener, AgentBuilder.RawMatcher ignoreMatcher, AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer resubmissionEnforcer, List<AgentBuilder.Default.Transformation> transformations, AgentBuilder.CircularityLock circularityLock) Creates a new class file transformer for the current VM.AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm.make(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, ClassFileLocator classFileLocator, AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy, AgentBuilder.InitializationStrategy initializationStrategy, AgentBuilder.InjectionStrategy injectionStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy, AgentBuilder.InstallationListener installationListener, AgentBuilder.RawMatcher ignoreMatcher, AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer resubmissionEnforcer, List<AgentBuilder.Default.Transformation> transformations, AgentBuilder.CircularityLock circularityLock) Creates a new class file transformer for the current VM.AgentBuilder.Default.ExecutingTransformer.Factory.make(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, ClassFileLocator classFileLocator, AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy, AgentBuilder.InitializationStrategy initializationStrategy, AgentBuilder.InjectionStrategy injectionStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy, AgentBuilder.InstallationListener installationListener, AgentBuilder.RawMatcher ignoreMatcher, AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer resubmissionEnforcer, List<AgentBuilder.Default.Transformation> transformations, AgentBuilder.CircularityLock circularityLock) Creates a new class file transformer for the current VM.protected AgentBuilder.Transformer.ForAdviceAgentBuilder.Transformer.ForAdvice.make(Advice.WithCustomMapping advice, Advice.ExceptionHandler exceptionHandler, Assigner assigner, ClassFileLocator classFileLocator, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.LocationStrategy locationStrategy, List<AgentBuilder.Transformer.ForAdvice.Entry> entries) Creates an advice transformer.protected AdviceAgentBuilder.Transformer.ForAdvice.Entry.ForSplitAdvice.resolve(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator) protected AdviceAgentBuilder.Transformer.ForAdvice.Entry.ForUnifiedAdvice.resolve(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator) protected abstract AdviceAgentBuilder.Transformer.ForAdvice.Entry.resolve(Advice.WithCustomMapping advice, TypePool typePool, ClassFileLocator classFileLocator) Resolves the advice for this entry.AgentBuilder.ClassFileBufferStrategy.typePool(AgentBuilder.PoolStrategy poolStrategy, ClassFileLocator classFileLocator, ClassLoader classLoader, String name) Resolves the type pool for a given type name by the suppliedAgentBuilder.PoolStrategy.AgentBuilder.PoolStrategy.ClassLoading.typePool(ClassFileLocator classFileLocator, ClassLoader classLoader) Creates a type pool for a given class file locator.AgentBuilder.PoolStrategy.ClassLoading.typePool(ClassFileLocator classFileLocator, ClassLoader classLoader, String name) Creates a type pool for a given class file locator.AgentBuilder.PoolStrategy.Default.typePool(ClassFileLocator classFileLocator, ClassLoader classLoader) Creates a type pool for a given class file locator.AgentBuilder.PoolStrategy.Default.typePool(ClassFileLocator classFileLocator, ClassLoader classLoader, String name) Creates a type pool for a given class file locator.AgentBuilder.PoolStrategy.Eager.typePool(ClassFileLocator classFileLocator, ClassLoader classLoader) Creates a type pool for a given class file locator.AgentBuilder.PoolStrategy.Eager.typePool(ClassFileLocator classFileLocator, ClassLoader classLoader, String name) Creates a type pool for a given class file locator.AgentBuilder.PoolStrategy.typePool(ClassFileLocator classFileLocator, ClassLoader classLoader) Creates a type pool for a given class file locator.AgentBuilder.PoolStrategy.typePool(ClassFileLocator classFileLocator, ClassLoader classLoader, String name) Creates a type pool for a given class file locator.AgentBuilder.PoolStrategy.WithTypePoolCache.typePool(ClassFileLocator classFileLocator, ClassLoader classLoader) Creates a type pool for a given class file locator.AgentBuilder.PoolStrategy.WithTypePoolCache.typePool(ClassFileLocator classFileLocator, ClassLoader classLoader, String name) Creates a type pool for a given class file locator.AgentBuilder.Default.Delegator.with(ClassFileLocator classFileLocator) AgentBuilder.Default.with(ClassFileLocator classFileLocator) AgentBuilder.with(ClassFileLocator classFileLocator) Registers an additional class file locator for types that are globally available but cannot be located otherwise.AgentBuilder.LocationStrategy.ForClassLoader.withFallbackTo(ClassFileLocator... classFileLocator) Adds additional location strategies as fallbacks to this location strategy.Method parameters in net.bytebuddy.agent.builder with type arguments of type ClassFileLocatorModifier and TypeMethodDescriptionAgentBuilder.Transformer.ForAdvice.include(List<? extends ClassFileLocator> classFileLocators) Includes the supplied class file locators as a source for looking up an advice class or its dependencies.AgentBuilder.LocationStrategy.ForClassLoader.withFallbackTo(Collection<? extends ClassFileLocator> classFileLocators) Adds additional location strategies as fallbacks to this location strategy.Constructors in net.bytebuddy.agent.builder with parameters of type ClassFileLocatorModifierConstructorDescriptionprotectedDefault(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.CircularityLock circularityLock, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, ClassFileLocator classFileLocator, AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy, AgentBuilder.Default.WarmupStrategy warmupStrategy, AgentBuilder.TransformerDecorator transformerDecorator, AgentBuilder.InitializationStrategy initializationStrategy, AgentBuilder.RedefinitionStrategy redefinitionStrategy, AgentBuilder.RedefinitionStrategy.DiscoveryStrategy redefinitionDiscoveryStrategy, AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator, AgentBuilder.RedefinitionStrategy.Listener redefinitionListener, AgentBuilder.RedefinitionStrategy.ResubmissionStrategy redefinitionResubmissionStrategy, AgentBuilder.InjectionStrategy injectionStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy, AgentBuilder.InstallationListener installationListener, AgentBuilder.RawMatcher ignoreMatcher, List<AgentBuilder.Default.Transformation> transformations) Creates a new default agent builder.ExecutingTransformer(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, ClassFileLocator classFileLocator, AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy, AgentBuilder.InitializationStrategy initializationStrategy, AgentBuilder.InjectionStrategy injectionStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy, AgentBuilder.InstallationListener installationListener, AgentBuilder.RawMatcher ignoreMatcher, AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer resubmissionEnforcer, List<AgentBuilder.Default.Transformation> transformations, AgentBuilder.CircularityLock circularityLock) Creates a new class file transformer.protectedForAdvice(Advice.WithCustomMapping advice, Advice.ExceptionHandler exceptionHandler, Assigner assigner, ClassFileLocator classFileLocator, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.LocationStrategy locationStrategy, List<AgentBuilder.Transformer.ForAdvice.Entry> entries) Creates a new advice transformer.protectedRedefining(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.CircularityLock circularityLock, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, ClassFileLocator classFileLocator, AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy, AgentBuilder.Default.WarmupStrategy warmupStrategy, AgentBuilder.TransformerDecorator transformerDecorator, AgentBuilder.InitializationStrategy initializationStrategy, AgentBuilder.RedefinitionStrategy redefinitionStrategy, AgentBuilder.RedefinitionStrategy.DiscoveryStrategy redefinitionDiscoveryStrategy, AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator, AgentBuilder.RedefinitionStrategy.Listener redefinitionListener, AgentBuilder.RedefinitionStrategy.ResubmissionStrategy redefinitionResubmissionStrategy, AgentBuilder.InjectionStrategy injectionStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy, AgentBuilder.InstallationListener installationListener, AgentBuilder.RawMatcher ignoreMatcher, List<AgentBuilder.Default.Transformation> transformations) Creates a new default agent builder that allows for refinement of the redefinition strategy.Simple(ClassFileLocator classFileLocator) A simple location strategy that queries a given class file locator. -
Uses of ClassFileLocator in net.bytebuddy.asm
Fields in net.bytebuddy.asm declared as ClassFileLocatorModifier and TypeFieldDescriptionprivate final ClassFileLocatorMemberSubstitution.TypePoolResolver.ForClassFileLocator.classFileLocatorThe class file locator to use.Methods in net.bytebuddy.asm with parameters of type ClassFileLocatorModifier and TypeMethodDescriptionstatic AdviceAdvice.to(Class<?> enterAdvice, Class<?> exitAdvice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.static AdviceAdvice.to(Class<?> advice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.protected static AdviceAdvice.to(TypeDescription advice, Advice.PostProcessor.Factory postProcessorFactory, ClassFileLocator classFileLocator, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, Advice.Delegator.Factory delegatorFactory) Creates a new advice.protected static AdviceAdvice.to(TypeDescription enterAdvice, TypeDescription exitAdvice, Advice.PostProcessor.Factory postProcessorFactory, ClassFileLocator classFileLocator, List<? extends Advice.OffsetMapping.Factory<?>> userFactories, Advice.Delegator.Factory delegatorFactory) Creates a new advice.static AdviceAdvice.to(TypeDescription enterAdvice, TypeDescription exitAdvice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.static AdviceAdvice.to(TypeDescription advice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.Advice.WithCustomMapping.to(Class<?> enterAdvice, Class<?> exitAdvice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.Advice.WithCustomMapping.to(Class<?> advice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.Advice.WithCustomMapping.to(TypeDescription enterAdvice, TypeDescription exitAdvice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.Advice.WithCustomMapping.to(TypeDescription advice, ClassFileLocator classFileLocator) Implements advice where every matched method is advised by the given type's advisory methods.Constructors in net.bytebuddy.asm with parameters of type ClassFileLocatorModifierConstructorDescriptionForClassFileLocator(ClassFileLocator classFileLocator) Creates a new type pool resolver for a class file locator as a supplement of the implicit type pool.ForClassFileLocator(ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode) Creates a new type pool resolver for a class file locator as a supplement of the implicit type pool. -
Uses of ClassFileLocator in net.bytebuddy.build
Fields in net.bytebuddy.build declared as ClassFileLocatorModifier and TypeFieldDescriptionprivate final ClassFileLocatorCachedReturnPlugin.classFileLocatorThe class file locator to use.private final ClassFileLocatorPlugin.Engine.Default.classFileLocatorThe class file locator to use.private final ClassFileLocatorPlugin.Engine.Default.Preprocessor.classFileLocatorThe class file locator to use.Methods in net.bytebuddy.build that return ClassFileLocatorModifier and TypeMethodDescriptionPlugin.Engine.Source.Compound.Origin.getClassFileLocator()Returns a class file locator for the represented source.Plugin.Engine.Source.Empty.getClassFileLocator()Returns a class file locator for the represented source.Plugin.Engine.Source.ForFolder.getClassFileLocator()Returns a class file locator for the represented source.Plugin.Engine.Source.InMemory.getClassFileLocator()Returns a class file locator for the represented source.Plugin.Engine.Source.Origin.Filtering.getClassFileLocator()Returns a class file locator for the represented source.Plugin.Engine.Source.Origin.ForJarFile.getClassFileLocator()Returns a class file locator for the represented source.Plugin.Engine.Source.Origin.getClassFileLocator()Returns a class file locator for the represented source.Methods in net.bytebuddy.build with parameters of type ClassFileLocatorModifier and TypeMethodDescriptionAccessControllerPlugin.apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.CachedReturnPlugin.apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.DispatcherAnnotationPlugin.apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.HashCodeAndEqualsPlugin.apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.Plugin.apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.Plugin.NoOp.apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.RenamingPlugin.apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.RepeatedAnnotationPlugin.apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.ToStringPlugin.apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator) Applies this plugin.Plugin.Engine.TypeStrategy.builder(ByteBuddy byteBuddy, TypeDescription typeDescription, ClassFileLocator classFileLocator) Creates a builder for a given type.Plugin.Engine.TypeStrategy.ForEntryPoint.builder(ByteBuddy byteBuddy, TypeDescription typeDescription, ClassFileLocator classFileLocator) Creates a builder for a given type.Map<TypeDescription, byte[]> Plugin.WithInitialization.initialize(ClassFileLocator classFileLocator) Returns a mapping of classes that should be created before discovering any types.voidPlugin.WithPreprocessor.onPreprocess(TypeDescription typeDescription, ClassFileLocator classFileLocator) Invoked upon the discovery of a type that is not explicitly ignored.EntryPoint.transform(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer) Applies a transformation.EntryPoint.Unvalidated.transform(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer) Applies a transformation.Plugin.Engine.PoolStrategy.Default.typePool(ClassFileLocator classFileLocator) Creates a type pool.Plugin.Engine.PoolStrategy.Eager.typePool(ClassFileLocator classFileLocator) Creates a type pool.Plugin.Engine.PoolStrategy.typePool(ClassFileLocator classFileLocator) Creates a type pool.Plugin.Engine.Default.with(ClassFileLocator classFileLocator) Appends the supplied class file locator to be queried for class files additionally to any previously registered class file locators.Plugin.Engine.with(ClassFileLocator classFileLocator) Appends the supplied class file locator to be queried for class files additionally to any previously registered class file locators.Constructors in net.bytebuddy.build with parameters of type ClassFileLocatorModifierConstructorDescriptionprotectedDefault(ByteBuddy byteBuddy, Plugin.Engine.TypeStrategy typeStrategy, Plugin.Engine.PoolStrategy poolStrategy, ClassFileLocator classFileLocator, Plugin.Engine.Listener listener, Plugin.Engine.ErrorHandler errorHandler, Plugin.Engine.Dispatcher.Factory dispatcherFactory, ElementMatcher.Junction<? super TypeDescription> ignoredTypeMatcher) Creates a new default plugin engine.privatePreprocessor(Plugin.Engine.Source.Element element, String typeName, ClassFileLocator classFileLocator, TypePool typePool, Plugin.Engine.Listener listener, List<Plugin> plugins, List<Plugin.WithPreprocessor> preprocessors) Creates a new preprocessor. -
Uses of ClassFileLocator in net.bytebuddy.dynamic
Subinterfaces of ClassFileLocator in net.bytebuddy.dynamicModifier and TypeInterfaceDescriptioninterfaceA dynamic type that is created at runtime, usually as the result of applying aDynamicType.Builderor as the result of anAuxiliaryType.static interfaceA dynamic type that has been loaded into the running instance of the Java virtual machine.static interfaceA dynamic type that has not yet been loaded by a givenClassLoader.Classes in net.bytebuddy.dynamic that implement ClassFileLocatorModifier and TypeClassDescriptionstatic classA compoundClassFileLocatorthat chains several locators.static classA class file locator that only applies for matched names.static classA class file locator that queries a class loader for binary representations of class files.static classA class file locator that queries a class loader for binary representations of class files.static classA class file locator that finds files from a standardized Java folder structure with folders donating packages and class files being saved as<classname>.classfiles within their package folder.static classA Java agent that allows the location of class files by emulating a retransformation.static classA class file locator that locates classes within a Java jar file.static classA class file locator that locates class files by querying a Java module'sgetResourceAsStreammethod.static classA class file locator for a Java module that only references this module weakly.static classA class file locator that locates classes within a Java jmod file.static classA class file locator that reads class files from one or several URLs.static enumA class file locator that cannot locate any class files.static classA class file locator that discriminates by a type's package.static classA simple class file locator that returns class files from a selection of given types.static classA default implementation of a dynamic type.protected static classA default implementation of a loaded dynamic type.static classA default implementation of an unloaded dynamic type.Fields in net.bytebuddy.dynamic declared as ClassFileLocatorModifier and TypeFieldDescriptionprivate final ClassFileLocatorClassFileLocator.Filtering.delegateThe delegate class file locator.Fields in net.bytebuddy.dynamic with type parameters of type ClassFileLocatorModifier and TypeFieldDescriptionprivate final List<ClassFileLocator> ClassFileLocator.Compound.classFileLocatorsTheClassFileLocators which are represented by this compound class file locator in the order of their application.private final Map<String, ClassFileLocator> ClassFileLocator.PackageDiscriminating.classFileLocatorsA mapping of package names to class file locators.Methods in net.bytebuddy.dynamic that return ClassFileLocatorModifier and TypeMethodDescriptionstatic ClassFileLocatorClassFileLocator.ForInstrumentation.fromInstalledAgent(ClassLoader classLoader) Returns an agent-based class file locator for the given class loader and an already installed Byte Buddy-agent.static ClassFileLocatorClassFileLocator.ForClassLoader.of(ClassLoader classLoader) Creates a class file locator for a given class loader.static ClassFileLocatorClassFileLocator.ForClassLoader.WeaklyReferenced.of(ClassLoader classLoader) Creates a class file locator for a given class loader.static ClassFileLocatorClassFileLocator.ForInstrumentation.of(Instrumentation instrumentation, Class<?> type) Returns a class file locator that is capable of locating a class file for the given type using the given instrumentation instance.static ClassFileLocatorCreates a new class file locator for the given jar file.static ClassFileLocatorClassFileLocator.ForModule.of(JavaModule module) Returns a class file locator for the provided module.static ClassFileLocatorClassFileLocator.ForModule.WeaklyReferenced.of(JavaModule module) Creates a class file locator for a Java module where the module is referenced weakly.static ClassFileLocatorReturns a class file locator for the given module file.static ClassFileLocatorCreates a class file locator for a single known type.static ClassFileLocatorClassFileLocator.Simple.of(Map<TypeDescription, byte[]> binaryRepresentations) Creates a class file locator that represents all types of a dynamic type.static ClassFileLocatorClassFileLocator.Simple.of(DynamicType dynamicType) Creates a class file locator that represents all types of a dynamic type.static ClassFileLocatorClassFileLocator.ForModule.ofBootLayer()Returns a class file locator that exposes all class files of the boot module layer.static ClassFileLocatorClassFileLocator.ForClassLoader.ofBootLoader()Creates a class file locator that queries the boot loader.static ClassFileLocatorClassFileLocator.ForModuleFile.ofBootPath()Creates a new class file locator for this VM's boot module path.static ClassFileLocatorClassFileLocator.ForModuleFile.ofBootPath(File bootPath) Creates a new class file locator for a Java boot module path.static ClassFileLocatorClassFileLocator.ForJarFile.ofClassPath()Resolves a class file locator for the class path that reads class files directly from the file system.static ClassFileLocatorClassFileLocator.ForJarFile.ofClassPath(String classPath) Resolves a class file locator for the class path that reads class files directly from the file system.static ClassFileLocatorClassFileLocator.ForModuleFile.ofModulePath()Resolves a class file locator for this VM's Java module path that reads class files directly from the file system.static ClassFileLocatorClassFileLocator.ForModuleFile.ofModulePath(String modulePath) Resolves a class file locator for a Java module path that reads class files directly from the file system.static ClassFileLocatorClassFileLocator.ForModuleFile.ofModulePath(String modulePath, String baseFolder) Resolves a class file locator for a Java module path that reads class files directly from the file system.static ClassFileLocatorClassFileLocator.ForClassLoader.ofPlatformLoader()Creates a class file locator that queries the plaform class loader or the extension class loader if the current VM is not at least of version 9.static ClassFileLocatorClassFileLocator.Simple.ofResources(Map<String, byte[]> binaryRepresentations) Creates a class file locator of a map of resources where class files are mapped by their path and file extension.static ClassFileLocatorClassFileLocator.ForJarFile.ofRuntimeJar()Resolves a class file locator for the runtime jar.static ClassFileLocatorClassFileLocator.ForClassLoader.ofSystemLoader()Creates a class file locator that queries the system class loader.Constructors in net.bytebuddy.dynamic with parameters of type ClassFileLocatorModifierConstructorDescriptionCompound(ClassFileLocator... classFileLocator) Creates a new compound class file locator.Filtering(ElementMatcher<? super String> matcher, ClassFileLocator delegate) Creates a new filtering class file locator.Constructor parameters in net.bytebuddy.dynamic with type arguments of type ClassFileLocatorModifierConstructorDescriptionCompound(List<? extends ClassFileLocator> classFileLocators) Creates a new compound class file locator.PackageDiscriminating(Map<String, ClassFileLocator> classFileLocators) Creates a new package-discriminating class file locator. -
Uses of ClassFileLocator in net.bytebuddy.dynamic.loading
Methods in net.bytebuddy.dynamic.loading with parameters of type ClassFileLocatorModifier and TypeMethodDescriptionClassReloadingStrategy.reset(ClassFileLocator classFileLocator, Class<?>... type) Resets all classes to their original definition.abstract voidClassReloadingStrategy.Strategy.reset(Instrumentation instrumentation, ClassFileLocator classFileLocator, List<Class<?>> types) Resets the provided types to their original format. -
Uses of ClassFileLocator in net.bytebuddy.dynamic.scaffold
Fields in net.bytebuddy.dynamic.scaffold declared as ClassFileLocatorModifier and TypeFieldDescriptionprotected final ClassFileLocatorTypeWriter.Default.ForInlining.classFileLocatorThe class file locator for locating the original type's class file.Methods in net.bytebuddy.dynamic.scaffold with parameters of type ClassFileLocatorModifier and TypeMethodDescriptionstatic <U> TypeWriter<U> TypeWriter.Default.forDecoration(TypeDescription instrumentedType, ClassFileVersion classFileVersion, List<? extends DynamicType> auxiliaryTypes, List<? extends MethodDescription> methods, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, TypePool typePool, ClassFileLocator classFileLocator) Creates a type writer for decorating a type.static <U> TypeWriter<U> TypeWriter.Default.forRebasing(MethodRegistry.Prepared methodRegistry, List<? extends DynamicType> auxiliaryTypes, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, TypePool typePool, TypeDescription originalType, ClassFileLocator classFileLocator, MethodRebaseResolver methodRebaseResolver) Creates a type writer for rebasing a type.static <U> TypeWriter<U> TypeWriter.Default.forRedefinition(MethodRegistry.Prepared methodRegistry, List<? extends DynamicType> auxiliaryTypes, TypeWriter.FieldPool fieldPool, TypeWriter.RecordComponentPool recordComponentPool, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, TypePool typePool, TypeDescription originalType, ClassFileLocator classFileLocator) Creates a type writer for redefining a type.Constructors in net.bytebuddy.dynamic.scaffold with parameters of type ClassFileLocatorModifierConstructorDescriptionprotectedForInlining(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, ClassWriterStrategy classWriterStrategy, TypePool typePool, TypeDescription originalType, ClassFileLocator classFileLocator) Creates a new inlining type writer.protectedWithDecorationOnly(TypeDescription instrumentedType, ClassFileVersion classFileVersion, List<? extends DynamicType> auxiliaryTypes, MethodList<?> methods, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, TypePool typePool, ClassFileLocator classFileLocator) Creates a new inlining type writer that only applies a decoration.protectedWithFullProcessing(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, 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 ClassFileLocator in net.bytebuddy.dynamic.scaffold.inline
Fields in net.bytebuddy.dynamic.scaffold.inline declared as ClassFileLocatorModifier and TypeFieldDescriptionprotected final ClassFileLocatorAbstractInliningDynamicTypeBuilder.classFileLocatorThe class file locator for locating the original type's class file.private final ClassFileLocatorDecoratingDynamicTypeBuilder.classFileLocatorThe class file locator for locating the original type's class file.Constructors in net.bytebuddy.dynamic.scaffold.inline with parameters of type ClassFileLocatorModifierConstructorDescriptionprotectedAbstractInliningDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, List<? extends DynamicType> auxiliaryTypes, TypeDescription originalType, ClassFileLocator classFileLocator) Creates an inlining dynamic type builder.DecoratingDynamicTypeBuilder(TypeDescription instrumentedType, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, ClassFileLocator classFileLocator) Creates a new decorating dynamic type builder.protectedDecoratingDynamicTypeBuilder(TypeDescription instrumentedType, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, List<DynamicType> auxiliaryTypes, ClassFileLocator classFileLocator) Creates a new decorating dynamic type builder.RebaseDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer) Creates a rebase dynamic type builder.protectedRebaseDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, List<? extends DynamicType> auxiliaryTypes, TypeDescription originalType, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer) Creates a rebase dynamic type builder.RedefinitionDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, TypeDescription originalType, ClassFileLocator classFileLocator) Creates a redefinition dynamic type builder.protectedRedefinitionDynamicTypeBuilder(InstrumentedType.WithFlexibleName instrumentedType, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, RecordComponentRegistry recordComponentRegistry, TypeAttributeAppender typeAttributeAppender, AsmVisitorWrapper asmVisitorWrapper, ClassFileVersion classFileVersion, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, AnnotationValueFilter.Factory annotationValueFilterFactory, AnnotationRetention annotationRetention, Implementation.Context.Factory implementationContextFactory, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, ClassWriterStrategy classWriterStrategy, LatentMatcher<? super MethodDescription> ignoredMethods, List<? extends DynamicType> auxiliaryTypes, TypeDescription originalType, ClassFileLocator classFileLocator) Creates a redefinition dynamic type builder. -
Uses of ClassFileLocator in net.bytebuddy.pool
Fields in net.bytebuddy.pool declared as ClassFileLocatorModifier and TypeFieldDescriptionprotected final ClassFileLocatorTypePool.Default.classFileLocatorThe locator to query for finding binary data of a type.Methods in net.bytebuddy.pool with parameters of type ClassFileLocatorModifier and TypeMethodDescriptionstatic TypePoolTypePool.Default.of(ClassFileLocator classFileLocator) Creates a defaultTypePoolthat looks up data by querying the supplied class file locator.static TypePoolTypePool.Default.WithLazyResolution.of(ClassFileLocator classFileLocator) Creates a defaultTypePoolwith lazy resolution that looks up data by querying the supplied class file locator.Constructors in net.bytebuddy.pool with parameters of type ClassFileLocatorModifierConstructorDescriptionDefault(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode) Creates a new default type pool without a parent pool.Default(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode, TypePool parentPool) Creates a new default type pool.WithLazyResolution(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode) Creates a new default type pool with lazy resolution and without a parent pool.WithLazyResolution(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode, TypePool parentPool) Creates a new default type pool with lazy resolution. -
Uses of ClassFileLocator in net.bytebuddy.utility
Methods in net.bytebuddy.utility with parameters of type ClassFileLocatorModifier and TypeMethodDescriptionstatic JavaConstantJavaConstant.Simple.ofDescription(Object value, ClassFileLocator classFileLocator) Creates a Java constant value from ajava.lang.constant.ConstantDesc.