public class BroadleafLoadTimeWeaver extends Object implements org.springframework.instrument.classloading.LoadTimeWeaver
| Constructor and Description |
|---|
BroadleafLoadTimeWeaver()
Create a new InstrumentationLoadTimeWeaver for the default ClassLoader.
|
BroadleafLoadTimeWeaver(ClassLoader classLoader)
Create a new InstrumentationLoadTimeWeaver for the given ClassLoader.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTransformer(ClassFileTransformer transformer) |
ClassLoader |
getInstrumentableClassLoader()
We have the ability to weave the current class loader when starting the
JVM in this way, so the instrumentable class loader will always be the
current loader.
|
protected static Instrumentation |
getInstrumentation()
Obtain the Instrumentation instance for the current VM, if available.
|
ClassLoader |
getThrowawayClassLoader()
This implementation always returns a
SimpleThrowawayClassLoader. |
static boolean |
isInstrumentationAvailable()
Check whether an Instrumentation instance is available for the current VM.
|
void |
removeTransformers()
Remove all registered transformers, in inverse order of registration.
|
public BroadleafLoadTimeWeaver()
public BroadleafLoadTimeWeaver(ClassLoader classLoader)
classLoader - the ClassLoader that registered transformers are supposed to apply topublic void addTransformer(ClassFileTransformer transformer)
addTransformer in interface org.springframework.instrument.classloading.LoadTimeWeaverpublic ClassLoader getInstrumentableClassLoader()
getInstrumentableClassLoader in interface org.springframework.instrument.classloading.LoadTimeWeaverpublic ClassLoader getThrowawayClassLoader()
SimpleThrowawayClassLoader.getThrowawayClassLoader in interface org.springframework.instrument.classloading.LoadTimeWeaverpublic void removeTransformers()
public static boolean isInstrumentationAvailable()
getInstrumentation()protected static Instrumentation getInstrumentation()
null if none foundisInstrumentationAvailable()Copyright © 2013. All rights reserved.