Explicit notes for load-time weaving on Tomcat 7.0.63+ and WildFly 9
Issue: SPR-13210
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -26,7 +26,7 @@ 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 well as WildFly 8 (as of Spring 4.0).
|
||||
* JBoss AS 6 and 7, as well as WildFly 8 and 9 (as of Spring 4.2).
|
||||
*
|
||||
* <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>
|
||||
@@ -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 or WildFly 8
|
||||
// JBoss AS 7 or WildFly
|
||||
this.adapter = new JBossModulesAdapter(classLoader);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user