A class injector is capable of injecting classes into a java. without
requiring the class loader to being able to explicitly look up these classes.
Important Note
Byte Buddy does not supply privileges when injecting code. When using a java.lang.SecurityManager,
the user of this injector is responsible for providing access to non-public properties.
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | ClassInjector.AbstractBase
An abstract base implementation of a class injector. |
| public static class | ClassInjector.UsingInstrumentation
A class injector using a |
| public static class | ClassInjector.UsingJna
A class injector using JNA to invoke JNI's define class utility for defining a class. |
| public static class | ClassInjector.UsingLookup
A class injector that uses a |
| public static class | ClassInjector.UsingReflection
A class injector that uses reflective method calls. |
| public static class | ClassInjector.UsingUnsafe
A class injector that uses |
| Modifier and Type | Field and Description |
|---|---|
| public static final boolean | ALLOW_EXISTING_TYPES
Determines the default behavior for type injections when a type is already loaded. |
| public static final Permission | SUPPRESS_ACCESS_CHECKS
A permission for the |
| Modifier and Type | Method and Description |
|---|---|
| public Map | Returns: The loaded types that were passed as arguments.The types to load via injection. types)Injects the given types into the represented class loader. |
| public Map | |
| public boolean | Returns: true if this injector is available on the current VM.Indicates if this class injector is available on the current VM. |