NativeWrappingClassFileTransformer#blockingMethods
and creates a delegating method by prefixing the original native method.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Type | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | transform(ClassLoader
the defining loader of the class to be transformed,
may be loader, String null if the bootstrap loaderthe name of the class in the internal form of fully
qualified class and interface names as defined in
The Java Virtual Machine Specification.
For example, className, Class<?> "java/util/List".if this is triggered by a redefine or retransform,
the class being redefined or retransformed;
if this is a class load, classBeingRedefined, ProtectionDomain nullthe protection domain of the class being defined or redefined protectionDomain, byte[] the input byte buffer in class file format - must not be modified classfileBuffer)Overrides default java. |
| BLOCK_HOUND_RUNTIME_TYPE | back to summary |
|---|---|
| pack-priv static final Type BLOCK_HOUND_RUNTIME_TYPE | |
| blockingMethods | back to summary |
|---|---|
| private final Map<String, Map<String, Set<String>>> blockingMethods | |
| NativeWrappingClassFileTransformer | back to summary |
|---|---|
| pack-priv NativeWrappingClassFileTransformer(final Map<String, Map<String, Set<String>>> blockingMethods) | |
| transform | back to summary |
|---|---|
| public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) Overrides default java. Doc from java. Transforms the given class file and returns a new replacement class file.
This method is invoked when the
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| pack-priv | NativeWrappingClassVisitor(ClassVisitor cw, Map<String, Set<String>> methods, String internalClassName)
|
| Modifier and Type | Method and Description |
|---|---|
| public MethodVisitor | visitMethod(int
the method's access flags (see access, String Opcodes). This parameter also indicates if
the method is synthetic and/or deprecated.the method's name. name, String the method's descriptor (see descriptor, String Type).the method's signature. May be null if the method parameters,
return type and exceptions do not use generic types. signature, String[] the internal names of the method's exception classes (see exceptions)
Visits a method of the class.
Type#getInternalName()). May be null. |
| className | back to summary |
|---|---|
| private final String className | |
| methods | back to summary |
|---|---|
| private final Map<String, Set<String>> methods | |
| NativeWrappingClassVisitor | back to summary |
|---|---|
| pack-priv NativeWrappingClassVisitor(ClassVisitor cw, Map<String, Set<String>> methods, String internalClassName) | |
| visitMethod | back to summary |
|---|---|
| public MethodVisitor visitMethod(int access, String name, String descriptor, String signature, String[] exceptions) Overrides net. Doc from net. Visits a method of the class. This method must return a new
| |