LoadTimeWeaver implementation for JBoss's instrumentable ClassLoader.
Thanks to Ales Justin and Marius Bogoevici for the initial prototype.
As of Spring Framework 5.0, this weaver supports WildFly 8+. As of Spring Framework 5.1.5, it also supports WildFly 13+.
| Modifier and Type | Field and Description |
|---|---|
| private final Method | |
| private final ClassLoader | |
| private static final String | |
| private final Object | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | JBossLoadTimeWeaver()
Create a new instance of the |
| public | JBossLoadTimeWeaver(ClassLoader
the classLoader)ClassLoader to delegate to for weavingCreate a new instance of the |
| Modifier and Type | Method and Description |
|---|---|
| public void | addTransformer(ClassFileTransformer
the transformer)ClassFileTransformer to addImplements org. ClassFileTransformer to be applied by this
LoadTimeWeaver.
|
| public ClassLoader | getInstrumentableClassLoader()
Implements org. ClassLoader that supports instrumentation
through AspectJ-style load-time weaving based on user-defined
ClassFileTransformers.
|
| public ClassLoader | getThrowawayClassLoader()
Implements org. ClassLoader, enabling classes to be
loaded and inspected without affecting the parent ClassLoader.
|
| addTransformer | back to summary |
|---|---|
| private final Method addTransformer | |
| classLoader | back to summary |
|---|---|
| private final ClassLoader classLoader | |
| DELEGATING_TRANSFORMER_CLASS_NAME | back to summary |
|---|---|
| private static final String DELEGATING_TRANSFORMER_CLASS_NAME | |
| delegatingTransformer | back to summary |
|---|---|
| private final Object delegatingTransformer | |
| WRAPPER_TRANSFORMER_CLASS_NAME | back to summary |
|---|---|
| private static final String WRAPPER_TRANSFORMER_CLASS_NAME | |
| JBossLoadTimeWeaver | back to summary |
|---|---|
| public JBossLoadTimeWeaver() Create a new instance of the | |
| JBossLoadTimeWeaver | back to summary |
|---|---|
| public JBossLoadTimeWeaver(ClassLoader classLoader) Create a new instance of the
| |
| addTransformer | back to summary |
|---|---|
| public void addTransformer(ClassFileTransformer transformer) Implements org. Doc from org. Add a
| |
| getInstrumentableClassLoader | back to summary |
|---|---|
| public ClassLoader getInstrumentableClassLoader() Implements org. Doc from org. Return a May be the current
| |
| getThrowawayClassLoader | back to summary |
|---|---|
| public ClassLoader getThrowawayClassLoader() Implements org. Doc from org. Return a throwaway Should not return the same instance of the
| |