diff --git a/spring-instrument-tomcat/src/main/java/org/springframework/instrument/classloading/tomcat/TomcatInstrumentableClassLoader.java b/spring-instrument-tomcat/src/main/java/org/springframework/instrument/classloading/tomcat/TomcatInstrumentableClassLoader.java index d510918deaf..cf652f24cfb 100644 --- a/spring-instrument-tomcat/src/main/java/org/springframework/instrument/classloading/tomcat/TomcatInstrumentableClassLoader.java +++ b/spring-instrument-tomcat/src/main/java/org/springframework/instrument/classloading/tomcat/TomcatInstrumentableClassLoader.java @@ -30,11 +30,10 @@ import org.springframework.instrument.classloading.WeavingTransformer; * to loaded classes without the need to use a VM-wide agent. * *
To be registered using a - * {@code Loader} tag - * in Tomcat's {@code Context} + * {@code Loader} tag + * in Tomcat's {@code Context} * definition in the {@code server.xml} file, with the Spring-provided "spring-instrument-tomcat.jar" - * file deployed into Tomcat's "server/lib" (for Tomcat 5.x) or "lib" (for Tomcat 6.x) directory. - * The required configuration tag looks as follows: + * file deployed into Tomcat's "lib" directory. The required configuration tag looks as follows: * *
<Loader loaderClass="org.springframework.instrument.classloading.tomcat.TomcatInstrumentableClassLoader"/>* @@ -44,10 +43,7 @@ import org.springframework.instrument.classloading.WeavingTransformer; * {@code getThrowawayClassLoader} methods mirror the corresponding methods * in the LoadTimeWeaver interface, as expected by ReflectiveLoadTimeWeaver. * - *
See the PetClinic sample application for a full example of this - * ClassLoader in action. - * - *
NOTE: Requires Apache Tomcat version 5.0 or higher. + *
NOTE: Requires Apache Tomcat version 6.0 or higher, as of Spring 4.0. * * @author Costin Leau * @author Juergen Hoeller @@ -103,7 +99,7 @@ public class TomcatInstrumentableClassLoader extends WebappClassLoader { */ public ClassLoader getThrowawayClassLoader() { WebappClassLoader tempLoader = new WebappClassLoader(); - // Use reflection to copy all the fields since most of them are private on pre-5.5 Tomcat. + // Use reflection to copy all the fields since they are not exposed any other way. shallowCopyFieldState(this, tempLoader); return tempLoader; }