| Modifier and Type | Class and Description |
|---|---|
| public static class | ClassFilePostProcessor.ForClassFileTransformer
A class file post processor that delegates to an |
| public static enum | ClassFilePostProcessor.NoOp
A non-operation class file post processor. |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: The class file to use.The class loader which is used to load a class or classLoader, String null if loaded by the bootstrap loader.The binary name of the transformed class. name, ProtectionDomain The protection domain of the transformed class or protectionDomain, byte[] null if no protection domain is provided.The binary representation of the class file. binaryRepresentation)Transforms a class file for a given class. |
| transform | back to summary |
|---|---|
| public byte[] transform(ClassLoader classLoader, String name, ProtectionDomain protectionDomain, byte[] binaryRepresentation) Transforms a class file for a given class.
| |
ClassFileTransformer.
| Modifier and Type | Class and Description |
|---|---|
| protected static class | ClassFilePostProcessor.ForClassFileTransformer.AllPermissionsCollection
A permission collection that implies all permissions. |
| Modifier and Type | Field and Description |
|---|---|
| protected static final ProtectionDomain | ALL_PRIVILEGES
A protection domain that represents all permissions. |
| private final ClassFileTransformer | classFileTransformer
The class file transformer to delegate to. |
| private static final Class | UNLOADED_TYPE
Indicates that a class is not currently loaded. |
| Access | Constructor and Description |
|---|---|
| public | ForClassFileTransformer(ClassFileTransformer
The class file transformer to delegate to. classFileTransformer)Creates a new class file post processor for a class file transformer. |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | transform(ClassLoader
The class loader which is used to load a class or classLoader, String null if loaded by the bootstrap loader.The binary name of the transformed class. name, ProtectionDomain The protection domain of the transformed class or protectionDomain, byte[] null if no protection domain is provided.The binary representation of the class file. binaryRepresentation)Implements net. |
| ALL_PRIVILEGES | back to summary |
|---|---|
| protected static final ProtectionDomain ALL_PRIVILEGES A protection domain that represents all permissions. | |
| classFileTransformer | back to summary |
|---|---|
| private final ClassFileTransformer classFileTransformer The class file transformer to delegate to. | |
| UNLOADED_TYPE | back to summary |
|---|---|
| private static final Class<?> UNLOADED_TYPE Indicates that a class is not currently loaded. | |
| ForClassFileTransformer | back to summary |
|---|---|
| public ForClassFileTransformer(ClassFileTransformer classFileTransformer) Creates a new class file post processor for a class file transformer.
| |
| transform | back to summary |
|---|---|
| public byte[] transform(ClassLoader classLoader, String name, ProtectionDomain protectionDomain, byte[] binaryRepresentation) Implements net. Doc from net. Transforms a class file for a given class.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
The serial version UID.
|
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(Permission
the Permission object to add. permission)Implements abstract java. |
| public Enumeration | elements()
Implements abstract java. |
| public boolean | implies(Permission
the permission)Permission object to compare.Implements abstract java. Permission objects held in this
PermissionCollection.
|
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. The serial version UID. | |
| AllPermissionsCollection | back to summary |
|---|---|
| protected AllPermissionsCollection() | |
| add | back to summary |
|---|---|
| public void add(Permission permission) Implements abstract java. Doc from java. Adds a permission object to the current collection of permission objects.
| |
| elements | back to summary |
|---|---|
| public Enumeration Implements abstract java. Doc from java. Returns an enumeration of all the Permission objects in the collection.
| |
| implies | back to summary |
|---|---|
| public boolean implies(Permission permission) Implements abstract java. Doc from java. Checks to see if the specified permission is implied by
the collection of
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ClassFilePostProcessor. | INSTANCE
The singleton instance. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | transform(ClassLoader
The class loader which is used to load a class or classLoader, String null if loaded by the bootstrap loader.The binary name of the transformed class. name, ProtectionDomain The protection domain of the transformed class or protectionDomain, byte[] null if no protection domain is provided.The binary representation of the class file. binaryRepresentation)Implements net. |
| public static ClassFilePostProcessor. | |
| public static ClassFilePostProcessor. |
| INSTANCE | back to summary |
|---|---|
| public static final ClassFilePostProcessor. The singleton instance. | |
| NoOp | back to summary |
|---|---|
| private NoOp() | |
| transform | back to summary |
|---|---|
| public byte[] transform(ClassLoader classLoader, String name, ProtectionDomain protectionDomain, byte[] binaryRepresentation) Implements net. Doc from net. Transforms a class file for a given class.
| |
| valueOf | back to summary |
|---|---|
| public static ClassFilePostProcessor. | |
| values | back to summary |
|---|---|
| public static ClassFilePostProcessor. | |