org.springframework.test.jpa
Class OrmXmlOverridingShadowingClassLoader
java.lang.Object
java.lang.ClassLoader
org.springframework.instrument.classloading.ShadowingClassLoader
org.springframework.instrument.classloading.ResourceOverridingShadowingClassLoader
org.springframework.test.jpa.OrmXmlOverridingShadowingClassLoader
class OrmXmlOverridingShadowingClassLoader
- extends ResourceOverridingShadowingClassLoader
Subclass of ShadowingClassLoader that overrides attempts to
locate orm.xml
.
This class must not be an inner class of AbstractJpaTests
to avoid it being loaded until first used.
- Since:
- 2.0
- Author:
- Rod Johnson, Adrian Colyer
Method Summary |
protected boolean |
isClassNameExcludedFromShadowing(String className)
Subclasses can override this method to specify whether or not
a particular class should be excluded from shadowing. |
Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_ORM_XML_LOCATION
public static final String DEFAULT_ORM_XML_LOCATION
- Default location of the
orm.xml
file in the class path:
"META-INF/orm.xml"
- See Also:
- Constant Field Values
OrmXmlOverridingShadowingClassLoader
public OrmXmlOverridingShadowingClassLoader(ClassLoader loader,
String realOrmXmlLocation)
isClassNameExcludedFromShadowing
protected boolean isClassNameExcludedFromShadowing(String className)
- Description copied from class:
ShadowingClassLoader
- Subclasses can override this method to specify whether or not
a particular class should be excluded from shadowing.
- Overrides:
isClassNameExcludedFromShadowing
in class ShadowingClassLoader
- Parameters:
className
- the class name to test
Copyright © 2002-2006 The Spring Framework.