| java.lang.Object java.lang.ClassLoader org.springframework.instrument.classloading.ShadowingClassLoader org.springframework.instrument.classloading.ResourceOverridingShadowingClassLoader
All known Subclasses: org.springframework.test.jpa.OrmXmlOverridingShadowingClassLoader,
ResourceOverridingShadowingClassLoader | public class ResourceOverridingShadowingClassLoader extends ShadowingClassLoader (Code) | | Subclass of ShadowingClassLoader that overrides attempts to
locate certain files.
author: Rod Johnson author: Adrian Colyer since: 2.0 |
ResourceOverridingShadowingClassLoader | public ResourceOverridingShadowingClassLoader(ClassLoader enclosingClassLoader)(Code) | | Create a new ResourceOverridingShadowingClassLoader,
decorating the given ClassLoader.
Parameters: enclosingClassLoader - the ClassLoader to decorate |
override | public void override(String oldPath, String newPath)(Code) | | Return the resource (if any) at the new path
on an attempt to locate a resource at the old path.
Parameters: oldPath - the path requested Parameters: newPath - the actual path to be looked up |
suppress | public void suppress(String oldPath)(Code) | | Ensure that a resource with the given path is not found.
Parameters: oldPath - the path of the resource to hide even ifit exists in the parent ClassLoader |
Fields inherited from org.springframework.instrument.classloading.ShadowingClassLoader | final public static String[] DEFAULT_EXCLUDED_PACKAGES(Code)(Java Doc)
|
Methods inherited from java.lang.ClassLoader | public synchronized void clearAssertionStatus()(Code)(Java Doc) final protected Class> defineClass(byte[] b, int off, int len) throws ClassFormatError(Code)(Java Doc) final protected Class> defineClass(String name, byte[] b, int off, int len) throws ClassFormatError(Code)(Java Doc) final protected Class> defineClass(String name, byte[] b, int off, int len, ProtectionDomain protectionDomain) throws ClassFormatError(Code)(Java Doc) final protected Class> defineClass(String name, java.nio.ByteBuffer b, ProtectionDomain protectionDomain) throws ClassFormatError(Code)(Java Doc) protected Package definePackage(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase) throws IllegalArgumentException(Code)(Java Doc) protected Class> findClass(String name) throws ClassNotFoundException(Code)(Java Doc) protected String findLibrary(String libname)(Code)(Java Doc) final protected Class> findLoadedClass(String name)(Code)(Java Doc) protected URL findResource(String name)(Code)(Java Doc) protected Enumeration<URL> findResources(String name) throws IOException(Code)(Java Doc) final protected Class> findSystemClass(String name) throws ClassNotFoundException(Code)(Java Doc) protected Package getPackage(String name)(Code)(Java Doc) protected Package[] getPackages()(Code)(Java Doc) final public ClassLoader getParent()(Code)(Java Doc) public URL getResource(String name)(Code)(Java Doc) public InputStream getResourceAsStream(String name)(Code)(Java Doc) public Enumeration<URL> getResources(String name) throws IOException(Code)(Java Doc) public static ClassLoader getSystemClassLoader()(Code)(Java Doc) public static URL getSystemResource(String name)(Code)(Java Doc) public static InputStream getSystemResourceAsStream(String name)(Code)(Java Doc) public static Enumeration<URL> getSystemResources(String name) throws IOException(Code)(Java Doc) public Class> loadClass(String name) throws ClassNotFoundException(Code)(Java Doc) protected synchronized Class> loadClass(String name, boolean resolve) throws ClassNotFoundException(Code)(Java Doc) final protected void resolveClass(Class> c)(Code)(Java Doc) public synchronized void setClassAssertionStatus(String className, boolean enabled)(Code)(Java Doc) public synchronized void setDefaultAssertionStatus(boolean enabled)(Code)(Java Doc) public synchronized void setPackageAssertionStatus(String packageName, boolean enabled)(Code)(Java Doc) final protected void setSigners(Class> c, Object[] signers)(Code)(Java Doc)
|
|
|