类 AbstractURLClassPathHandle
- java.lang.Object
-
- io.microsphere.classloading.AbstractURLClassPathHandle
-
- 所有已实现的接口:
URLClassPathHandle
,Prioritized
,java.lang.Comparable<Prioritized>
public abstract class AbstractURLClassPathHandle extends java.lang.Object implements URLClassPathHandle, Prioritized
AbstractURLClassPathHandle
- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
- 另请参阅:
ClassicURLClassPathHandle
,ModernURLClassPathHandle
,URLClassPathHandle
-
-
字段概要
-
从接口继承的字段 io.microsphere.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY
-
-
构造器概要
构造器 构造器 说明 AbstractURLClassPathHandle()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected java.lang.reflect.Field
findUcpField(java.lang.ClassLoader classLoader)
protected java.lang.reflect.Field
getBaseField()
protected java.lang.Class<?>
getLoaderClass()
protected java.lang.reflect.Field
getLoadersField()
protected java.lang.reflect.Field
getPathField()
int
getPriority()
Get the priorityprotected java.lang.Class<?>
getUrlClassPathClass()
protected abstract java.lang.String
getURLClassPathClassName()
java.net.URL[]
getURLs(java.lang.ClassLoader classLoader)
Get the Class-Path URLs from the specifiedClassLoader
protected java.lang.reflect.Field
getUrlsField()
protected abstract java.lang.String
getUrlsFieldName()
boolean
removeURL(java.lang.ClassLoader classLoader, java.net.URL url)
Remove the Class-PathURL
from the specifiedClassLoader
void
setPriority(int priority)
boolean
supports()
Supports or not-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 io.microsphere.lang.Prioritized
compareTo
-
-
-
-
方法详细资料
-
supports
public boolean supports()
从接口复制的说明:URLClassPathHandle
Supports or not- 指定者:
supports
在接口中URLClassPathHandle
- 返回:
- if supports, return
true
, otherwisefalse
-
getURLs
@Nonnull public java.net.URL[] getURLs(java.lang.ClassLoader classLoader)
从接口复制的说明:URLClassPathHandle
Get the Class-Path URLs from the specifiedClassLoader
- 指定者:
getURLs
在接口中URLClassPathHandle
- 参数:
classLoader
- the specifiedClassLoader
- 返回:
- the non-null array of
URLs
-
removeURL
public final boolean removeURL(java.lang.ClassLoader classLoader, java.net.URL url)
从接口复制的说明:URLClassPathHandle
Remove the Class-PathURL
from the specifiedClassLoader
- 指定者:
removeURL
在接口中URLClassPathHandle
- 参数:
classLoader
- the specifiedClassLoader
url
- the Class-PathURL
- 返回:
- if removed, return
true
, otherwisefalse
-
setPriority
public final void setPriority(int priority)
-
getPriority
public final int getPriority()
从接口复制的说明:Prioritized
Get the priority- 指定者:
getPriority
在接口中Prioritized
- 返回:
- the default is
minimum one
-
getUrlClassPathClass
protected final java.lang.Class<?> getUrlClassPathClass()
-
getLoaderClass
protected final java.lang.Class<?> getLoaderClass()
-
findUcpField
protected final java.lang.reflect.Field findUcpField(java.lang.ClassLoader classLoader)
-
getPathField
protected final java.lang.reflect.Field getPathField()
-
getUrlsField
protected final java.lang.reflect.Field getUrlsField()
-
getLoadersField
protected final java.lang.reflect.Field getLoadersField()
-
getBaseField
protected final java.lang.reflect.Field getBaseField()
-
getURLClassPathClassName
protected abstract java.lang.String getURLClassPathClassName()
-
getUrlsFieldName
protected abstract java.lang.String getUrlsFieldName()
-
-