|
|
|
@ -26,9 +26,9 @@ import org.springframework.util.ClassUtils; |
|
|
|
|
/** |
|
|
|
|
* {@link LoadTimeWeaver} implementation for JBoss's instrumentable ClassLoader. |
|
|
|
|
* Autodetects the specific JBoss version at runtime: currently supports |
|
|
|
|
* JBoss AS 6 and 7 (as of Spring 4.0). |
|
|
|
|
* JBoss AS 6 and 7, as well as WildFly 8 (as of Spring 4.0). |
|
|
|
|
* |
|
|
|
|
* <p><b>NOTE:</b> On JBoss 6.0, to avoid the container loading the classes before the |
|
|
|
|
* <p><b>NOTE:</b> On JBoss 6, to avoid the container loading the classes before the |
|
|
|
|
* application actually starts, one needs to add a <tt>WEB-INF/jboss-scanning.xml</tt> |
|
|
|
|
* file to the application archive - with the following content: |
|
|
|
|
* <pre class="code"><scanning xmlns="urn:jboss:scanning:1.0"/></pre> |
|
|
|
@ -62,7 +62,7 @@ public class JBossLoadTimeWeaver implements LoadTimeWeaver { |
|
|
|
|
public JBossLoadTimeWeaver(ClassLoader classLoader) { |
|
|
|
|
Assert.notNull(classLoader, "ClassLoader must not be null"); |
|
|
|
|
if (classLoader.getClass().getName().startsWith("org.jboss.modules")) { |
|
|
|
|
// JBoss AS 7
|
|
|
|
|
// JBoss AS 7 or WildFly 8
|
|
|
|
|
this.adapter = new JBossModulesAdapter(classLoader); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|