parent
b6f1afd471
commit
bdb94738ec
|
|
@ -23,12 +23,12 @@ import org.springframework.lang.UsesJava7;
|
||||||
import org.springframework.util.FileCopyUtils;
|
import org.springframework.util.FileCopyUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@code ClassLoader} that does <i>not</i> always delegate to the
|
* {@code ClassLoader} that does <i>not</i> always delegate to the parent loader
|
||||||
* parent loader, as normal class loaders do. This enables, for example,
|
* as normal class loaders do. This enables, for example, instrumentation to be
|
||||||
* instrumentation to be forced in the overriding ClassLoader, or a
|
* forced in the overriding ClassLoader, or a "throwaway" class loading behavior
|
||||||
* "throwaway" class loading behavior, where selected classes are
|
* where selected application classes are temporarily loaded in the overriding
|
||||||
* temporarily loaded in the overriding ClassLoader, in order to load
|
* {@code ClassLoader} for introspection purposes before eventually loading an
|
||||||
* an instrumented version of the class in the parent ClassLoader later on.
|
* instrumented version of the class in the given parent {@code ClassLoader}.
|
||||||
*
|
*
|
||||||
* @author Rod Johnson
|
* @author Rod Johnson
|
||||||
* @author Juergen Hoeller
|
* @author Juergen Hoeller
|
||||||
|
|
@ -39,7 +39,7 @@ public class OverridingClassLoader extends DecoratingClassLoader {
|
||||||
|
|
||||||
/** Packages that are excluded by default */
|
/** Packages that are excluded by default */
|
||||||
public static final String[] DEFAULT_EXCLUDED_PACKAGES = new String[]
|
public static final String[] DEFAULT_EXCLUDED_PACKAGES = new String[]
|
||||||
{"java.", "javax.", "sun.", "oracle.", "javassist.", "org.springframework.core."};
|
{"java.", "javax.", "sun.", "oracle.", "javassist.", "org.aspectj.", "net.sf.cglib."};
|
||||||
|
|
||||||
private static final String CLASS_FILE_SUFFIX = ".class";
|
private static final String CLASS_FILE_SUFFIX = ".class";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue