LoadTimeWeaver bean for use in an application context,
decorating an automatically detected internal LoadTimeWeaver.
Typically registered for the default bean name "loadTimeWeaver";
the most convenient way to achieve this is Spring's
<context:load-time-weaver> XML tag or @EnableLoadTimeWeaving
on a @Configuration class.
This class implements a runtime environment check for obtaining the
appropriate weaver implementation, including
Spring's VM agent and any ClassLoader
supported by Spring's ReflectiveLoadTimeWeaver.
org.springframework.context.ConfigurableApplicationContext#LOAD_TIME_WEAVER_BEAN_NAME
| Modifier and Type | Field and Description |
|---|---|
| private LoadTimeWeaver | |
| protected final Log |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addTransformer(ClassFileTransformer
the transformer)ClassFileTransformer to addImplements org. ClassFileTransformer to be applied by this
LoadTimeWeaver.
|
| protected LoadTimeWeaver | |
| public void | destroy()
Implements org. BeanFactory on destruction of a bean.
|
| 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.
|
| public void | setBeanClassLoader(ClassLoader
the owning class loader classLoader)Implements org. class loader to
a bean instance.
|
| loadTimeWeaver | back to summary |
|---|---|
| private LoadTimeWeaver loadTimeWeaver
| |
| logger | back to summary |
|---|---|
| protected final Log logger | |
| DefaultContextLoadTimeWeaver | back to summary |
|---|---|
| public DefaultContextLoadTimeWeaver() | |
| DefaultContextLoadTimeWeaver | back to summary |
|---|---|
| public DefaultContextLoadTimeWeaver(ClassLoader beanClassLoader) | |
| addTransformer | back to summary |
|---|---|
| public void addTransformer(ClassFileTransformer transformer) Implements org. Doc from org. Add a
| |
| createServerSpecificLoadTimeWeaver | back to summary |
|---|---|
protected LoadTimeWeaver createServerSpecificLoadTimeWeaver(ClassLoader classLoader)
| |
| destroy | back to summary |
|---|---|
| public void destroy() Implements org. Doc from org. Invoked by the containing
| |
| 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
| |
| setBeanClassLoader | back to summary |
|---|---|
| public void setBeanClassLoader(ClassLoader classLoader) Implements org. Doc from org. Callback that supplies the bean Invoked after the population of normal bean properties but
before an initialization callback such as
| |