public final class ClassDefiner extends Object
| Modifier and Type | Method | Description |
|---|---|---|
Class<?> |
defineClass(Class<?> originalClass,
String className,
byte[] classBytes) |
Define a class using the module and protection domain of an existing class.
|
Class<?> |
defineClass(Class<?> originalClass,
String className,
byte[] classBytes,
int off,
int len) |
Define a class using the module and protection domain of an existing class.
|
Class<?> |
defineClass(Class<?> originalClass,
String className,
ByteBuffer classBytes) |
Define a class using the module and protection domain of an existing class.
|
Class<?> |
defineClass(Class<?> originalClass,
String className,
ProtectionDomain protectionDomain,
byte[] classBytes) |
Define a class using the module of an existing class.
|
Class<?> |
defineClass(Class<?> originalClass,
String className,
ProtectionDomain protectionDomain,
byte[] classBytes,
int off,
int len) |
Define a class using the module of an existing class.
|
Class<?> |
defineClass(Class<?> originalClass,
String className,
ProtectionDomain protectionDomain,
ByteBuffer classBytes) |
Define a class using the module of an existing class.
|
Class<?> |
defineClass(Module module,
String className,
ProtectionDomain protectionDomain,
byte[] classBytes) |
Define a class.
|
Class<?> |
defineClass(Module module,
String className,
ProtectionDomain protectionDomain,
byte[] classBytes,
int off,
int len) |
Define a class.
|
Class<?> |
defineClass(Module module,
String className,
ProtectionDomain protectionDomain,
ByteBuffer classBytes) |
Define a class.
|
static ClassDefiner |
getInstance() |
Get the class definer instance.
|
public Class<?> defineClass(Class<?> originalClass, String className, ByteBuffer classBytes)
originalClass - the existing class (must not be null)className - the new class name (must not be null)classBytes - the new class bytes (must not be null)null)public Class<?> defineClass(Class<?> originalClass, String className, byte[] classBytes, int off, int len)
originalClass - the existing class (must not be null)className - the new class name (must not be null)classBytes - the new class bytes (must not be null)off - the offset into the classBytes arraylen - the number of bytes to use from the classBytes arraynull)public Class<?> defineClass(Class<?> originalClass, String className, byte[] classBytes)
originalClass - the existing class (must not be null)className - the new class name (must not be null)classBytes - the new class bytes (must not be null)null)public Class<?> defineClass(Class<?> originalClass, String className, ProtectionDomain protectionDomain, ByteBuffer classBytes)
originalClass - the existing class (must not be null)className - the new class name (must not be null)protectionDomain - the protection domain of the new class (must not be null)classBytes - the new class bytes (must not be null)null)public Class<?> defineClass(Class<?> originalClass, String className, ProtectionDomain protectionDomain, byte[] classBytes, int off, int len)
originalClass - the existing class (must not be null)className - the new class name (must not be null)protectionDomain - the protection domain of the new class (must not be null)classBytes - the new class bytes (must not be null)off - the offset into the classBytes arraylen - the number of bytes to use from the classBytes arraynull)public Class<?> defineClass(Class<?> originalClass, String className, ProtectionDomain protectionDomain, byte[] classBytes)
originalClass - the existing class (must not be null)className - the new class name (must not be null)protectionDomain - the protection domain of the new class (must not be null)classBytes - the new class bytes (must not be null)null)public Class<?> defineClass(Module module, String className, ProtectionDomain protectionDomain, ByteBuffer classBytes)
module - the module to define the class to (must not be null)className - the new class name (must not be null)protectionDomain - the protection domain of the new class (must not be null)classBytes - the new class bytes (must not be null)null)public Class<?> defineClass(Module module, String className, ProtectionDomain protectionDomain, byte[] classBytes, int off, int len)
module - the module to define the class to (must not be null)className - the new class name (must not be null)protectionDomain - the protection domain of the new class (must not be null)classBytes - the new class bytes (must not be null)off - the offset into the classBytes arraylen - the number of bytes to use from the classBytes arraynull)public Class<?> defineClass(Module module, String className, ProtectionDomain protectionDomain, byte[] classBytes)
module - the module to define the class to (must not be null)className - the new class name (must not be null)protectionDomain - the protection domain of the new class (must not be null)classBytes - the new class bytes (must not be null)null)public static ClassDefiner getInstance()
createClassLoader RuntimePermission.null)Copyright © 2022 JBoss by Red Hat. All rights reserved.