org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter
with the Spring application context's default
org.springframework.instrument.classloading.LoadTimeWeaver .
| Modifier and Type | Class and Description |
|---|---|
| private static class | AspectJWeavingEnabler.
ClassFileTransformer decorator that suppresses processing of AspectJ classes in order to avoid potential LinkageErrors. |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | ASPECTJ_AOP_XML_RESOURCE
The |
| private ClassLoader | |
| private LoadTimeWeaver |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | enableAspectJWeaving(LoadTimeWeaver
the LoadTimeWeaver to apply to (or weaverToUse, ClassLoader null for a default weaver)the class loader to create a default weaver for (if necessary) beanClassLoader)Enable AspectJ weaving with the given |
| public int | |
| public void | postProcessBeanFactory(ConfigurableListableBeanFactory
the bean factory used by the application context beanFactory)Implements org. Modify the application context's internal bean factory after its standard initialization. |
| public void | setBeanClassLoader(ClassLoader
the owning class loader classLoader)Implements org. Callback that supplies the bean |
| public void | setLoadTimeWeaver(LoadTimeWeaver
the loadTimeWeaver)LoadTimeWeaver instance (never null)Implements org. Set the |
| ASPECTJ_AOP_XML_RESOURCE | back to summary |
|---|---|
| public static final String ASPECTJ_AOP_XML_RESOURCE The | |
| beanClassLoader | back to summary |
|---|---|
| private ClassLoader beanClassLoader
| |
| loadTimeWeaver | back to summary |
|---|---|
| private LoadTimeWeaver loadTimeWeaver
| |
| AspectJWeavingEnabler | back to summary |
|---|---|
| public AspectJWeavingEnabler() | |
| enableAspectJWeaving | back to summary |
|---|---|
| public static void enableAspectJWeaving(LoadTimeWeaver weaverToUse, ClassLoader beanClassLoader) Enable AspectJ weaving with the given
| |
| getOrder | back to summary |
|---|---|
| public int getOrder() Implements org. Doc from org. Get the order value of this object. Higher values are interpreted as lower priority. As a consequence,
the object with the lowest value has the highest priority (somewhat
analogous to Servlet Same order values will result in arbitrary sort positions for the affected objects.
| |
| postProcessBeanFactory | back to summary |
|---|---|
| public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException Implements org. Doc from org. Modify the application context's internal bean factory after its standard initialization. All bean definitions will have been loaded, but no beans will have been instantiated yet. This allows for overriding or adding properties even to eager-initializing beans.
| |
| 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
| |
| setLoadTimeWeaver | back to summary |
|---|---|
| public void setLoadTimeWeaver(LoadTimeWeaver loadTimeWeaver) Implements org. Doc from org. Set the Invoked after the population of normal bean properties but before an
initialization callback like
Note This method will only be called if there actually is a
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ClassFileTransformer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | transform(ClassLoader
the defining loader of the class to be transformed,
may be loader, String null if the bootstrap loaderthe name of the class in the internal form of fully
qualified class and interface names as defined in
The Java Virtual Machine Specification.
For example, className, Class<?> "java/util/List".if this is triggered by a redefine or retransform,
the class being redefined or retransformed;
if this is a class load, classBeingRedefined, ProtectionDomain nullthe protection domain of the class being defined or redefined protectionDomain, byte[] the input byte buffer in class file format - must not be modified classfileBuffer)Overrides default java. Transforms the given class file and returns a new replacement class file. |
| delegate | back to summary |
|---|---|
| private final ClassFileTransformer delegate | |
| AspectJClassBypassingClassFileTransformer | back to summary |
|---|---|
| public AspectJClassBypassingClassFileTransformer(ClassFileTransformer delegate) | |
| transform | back to summary |
|---|---|
| public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException Overrides default java. Doc from java. Transforms the given class file and returns a new replacement class file.
This method is invoked when the
| |