java.lang.Object | |
↳ | org.springframework.instrument.classloading.WeavingTransformer |
ClassFileTransformer-based weaver, allowing for a list of transformers to be applied on a class byte array. Normally used inside class loaders.
Note: This class is deliberately implemented for minimal external dependencies, since it is included in weaver jars (to be deployed into application servers).
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new WeavingTransformer for the given class loader.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a class file transformer to be applied by this weaver.
| |||||||||||
Apply transformation on a given class byte definition.
| |||||||||||
Apply transformation on a given class byte definition.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create a new WeavingTransformer for the given class loader.
classLoader | the ClassLoader to build a transformer for |
---|
Add a class file transformer to be applied by this weaver.
transformer | the class file transformer to register |
---|
Apply transformation on a given class byte definition. The method will always return a non-null byte array (if no transformation has taken place the array content will be identical to the original one).
className | the full qualified name of the class in dot format (i.e. some.package.SomeClass) |
---|---|
internalName | class name internal name in / format (i.e. some/package/SomeClass) |
bytes | class byte definition |
pd | protection domain to be used (can be null) |
Apply transformation on a given class byte definition. The method will always return a non-null byte array (if no transformation has taken place the array content will be identical to the original one).
className | the full qualified name of the class in dot format (i.e. some.package.SomeClass) |
---|---|
bytes | class byte definition |