JBoss Community Archive (Read Only)


Load-time weaving

From Spring 3.0 onward, load-time weaving on JBoss Enterprise Application Platform and JBoss Enterprise Web Platform is supported out of the box. The component described in this section can be used to facilitate backwards compatibility, but configuring a custom load-time weaver is not required when using Spring 3.0.

Load-time weaving support is provided by the snowdrop-weaving.jar library.

To perform load-time weaving for the application classes in Spring (either for using load-time support for AspectJ or for JPA support), the Spring framework needs to install its own transformers in the classloader. For JBoss Enterprise Application Platform, JBoss Enterprise Web Platform and JBoss Enterprise Web Server, a classloader-specific LoadTimeWeaver is necessary.

Define the JBoss5LoadTimeWeaver in the Spring application context as shown here:

<context:load-time-weaver weaver-class="org.jboss.instrument.classloading.JBoss5LoadTimeWeaver"/>
JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 09:40:28 UTC, last content change 2011-09-27 21:06:04 UTC.