Class ClassInjector.AbstractBase
java.lang.Object
net.bytebuddy.dynamic.loading.ClassInjector.AbstractBase
- All Implemented Interfaces:
ClassInjector
- Direct Known Subclasses:
ClassInjector.UsingInstrumentation, ClassInjector.UsingJna, ClassInjector.UsingLookup, ClassInjector.UsingReflection, ClassInjector.UsingUnsafe
- Enclosing interface:
ClassInjector
An abstract base implementation of a class injector.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ClassInjector
ClassInjector.AbstractBase, ClassInjector.UsingInstrumentation, ClassInjector.UsingJna, ClassInjector.UsingLookup, ClassInjector.UsingReflection, ClassInjector.UsingUnsafe -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final PermissionA permission for thesuppressAccessCheckspermission ornullif not supported.Fields inherited from interface ClassInjector
ALLOW_EXISTING_TYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMap<TypeDescription, Class<?>> inject(Map<? extends TypeDescription, byte[]> types) Injects the given types into the represented class loader.Map<TypeDescription, Class<?>> inject(Set<? extends TypeDescription> types, ClassFileLocator classFileLocator) Injects the given types into the represented class loader.Injects the given types into the represented class loader.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClassInjector
injectRaw, isAlive
-
Field Details
-
SUPPRESS_ACCESS_CHECKS
A permission for thesuppressAccessCheckspermission ornullif not supported.
-
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
inject
public Map<TypeDescription, Class<?>> inject(Set<? extends TypeDescription> types, ClassFileLocator classFileLocator) Injects the given types into the represented class loader.- Specified by:
injectin interfaceClassInjector- Parameters:
types- The types to load via injection.classFileLocator- The class file locator to use for resolving binary representations.- Returns:
- The loaded types that were passed as arguments.
-
inject
Injects the given types into the represented class loader.- Specified by:
injectin interfaceClassInjector- Parameters:
types- The types to load via injection.- Returns:
- The loaded types that were passed as arguments.
-
injectRaw
-