类 UnitTestModuleClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- io.esastack.cabin.container.service.loader.AbstractClassLoader
-
- io.esastack.cabin.container.service.loader.BizModuleClassLoader
-
- io.esastack.cabin.container.service.loader.UnitTestModuleClassLoader
-
- 所有已实现的接口:
Closeable,AutoCloseable
public class UnitTestModuleClassLoader extends BizModuleClassLoader
Classes of unit test framework should be loaded by AppClassLoader: 1. some of these classes is loaded by AppClassLoader before the CabinContainer is started, if then loaded by BizModuleClassLoader, some LinkErrs would happen; 2. Cabin re-write a CabinSpringRunner, and loaded SpringRunner with UnitTestModuleClassLoader, its super class org.junit.runner.Runner should be loaded by AppClassLoader in order to be assigned correctly.
-
-
字段概要
-
从类继承的字段 io.esastack.cabin.container.service.loader.AbstractClassLoader
classLoaderService, moduleName, sharedClassService, sharedResourceService
-
-
构造器概要
构造器 构造器 说明 UnitTestModuleClassLoader(URL[] urls)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected Class<?>loadClass0(String name, boolean resolve)-
从类继承的方法 io.esastack.cabin.container.service.loader.BizModuleClassLoader
getResource0, getResources0
-
从类继承的方法 io.esastack.cabin.container.service.loader.AbstractClassLoader
debugClassLoadMessage, getBizResource, getBizResources, getExportResource, getExportResources, getJavaAgentResource, getJavaAgentResources, getJdkResource, getJdkResources, getLocalResource, getLocalResources, getModuleName, getResource, getResources, loadAgentClass, loadBizClass, loadCabinClass, loadClass, loadClassFromClasspath, loadFromRecords, loadImportClassFromBiz, loadJdkClass, loadLocalClass, loadSharedClass, shouldImportClassFromBiz
-
从类继承的方法 java.net.URLClassLoader
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
-
从类继承的方法 java.security.SecureClassLoader
defineClass, defineClass
-
从类继承的方法 java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
构造器详细资料
-
UnitTestModuleClassLoader
public UnitTestModuleClassLoader(URL[] urls)
-
-
方法详细资料
-
loadClass0
protected Class<?> loadClass0(String name, boolean resolve) throws CabinLoaderException
- 覆盖:
loadClass0在类中BizModuleClassLoader- 抛出:
CabinLoaderException
-
-