- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- org.redkale.util.RedkaleClassLoader
-
- 所有已实现的接口:
Closeable
,AutoCloseable
public class RedkaleClassLoader extends URLClassLoader
Redkale内部ClassLoader详情见: https://redkale.org
- 作者:
- zhangjx
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
RedkaleClassLoader.DynBytesClassLoader
static class
RedkaleClassLoader.RedkaleCacheClassLoader
-
字段概要
字段 修饰符和类型 字段 说明 static String
RESOURCE_CACHE_CLASSES_PATH
static String
RESOURCE_CACHE_CONF_PATH
static URI
URI_NONE
-
构造器概要
构造器 构造器 说明 RedkaleClassLoader(ClassLoader parent)
RedkaleClassLoader(URL[] urls, ClassLoader parent)
-
方法概要
-
从类继承的方法 java.net.URLClassLoader
close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, 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, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
构造器详细资料
-
RedkaleClassLoader
public RedkaleClassLoader(ClassLoader parent)
-
RedkaleClassLoader
public RedkaleClassLoader(URL[] urls, ClassLoader parent)
-
-
方法详细资料
-
getConfResourceAsStream
public static InputStream getConfResourceAsStream(String confURI, String file)
-
forEachBundleResource
public static void forEachBundleResource(BiConsumer<String,Set<String>> action)
-
putResourcePath
public static void putResourcePath(String name)
-
forEachDynClass
public static void forEachDynClass(BiConsumer<String,byte[]> action)
-
putReflectionClass
public static void putReflectionClass(String className)
-
putServiceLoader
public static void putServiceLoader(Class clazz)
-
forEachServiceLoader
public static void forEachServiceLoader(BiConsumer<String,Class> action)
-
putReflectionDeclaredConstructors
public static void putReflectionDeclaredConstructors(Class clazz, String className, Class... cts)
-
putReflectionPublicConstructors
public static void putReflectionPublicConstructors(Class clazz, String className)
-
putReflectionDeclaredMethods
public static void putReflectionDeclaredMethods(String className)
-
putReflectionPublicMethods
public static void putReflectionPublicMethods(String className)
-
putReflectionDeclaredFields
public static void putReflectionDeclaredFields(String className)
-
putReflectionPublicFields
public static void putReflectionPublicFields(String className)
-
putReflectionDeclaredClasses
public static void putReflectionDeclaredClasses(String className)
-
putReflectionPublicClasses
public static void putReflectionPublicClasses(String className)
-
forEachReflection
public static void forEachReflection(BiConsumer<String,Map<String,Object>> action)
-
addURI
public void addURI(URI uri)
-
addURL
public void addURL(URL url)
- 覆盖:
addURL
在类中URLClassLoader
-
getURLs
public URL[] getURLs()
- 覆盖:
getURLs
在类中URLClassLoader
-
getAllURIs
public URI[] getAllURIs()
-
-