类 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.FieldfindUcpField(java.lang.ClassLoader classLoader)protected java.lang.reflect.FieldgetBaseField()protected java.lang.Class<?>getLoaderClass()protected java.lang.reflect.FieldgetLoadersField()protected java.lang.reflect.FieldgetPathField()intgetPriority()Get the priorityprotected java.lang.Class<?>getUrlClassPathClass()protected abstract java.lang.StringgetURLClassPathClassName()java.net.URL[]getURLs(java.lang.ClassLoader classLoader)Get the Class-Path URLs from the specifiedClassLoaderprotected java.lang.reflect.FieldgetUrlsField()protected abstract java.lang.StringgetUrlsFieldName()booleanremoveURL(java.lang.ClassLoader classLoader, java.net.URL url)Remove the Class-PathURLfrom the specifiedClassLoadervoidsetPriority(int priority)booleansupports()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()
从接口复制的说明:URLClassPathHandleSupports or not- 指定者:
supports在接口中URLClassPathHandle- 返回:
- if supports, return
true, otherwisefalse
-
getURLs
@Nonnull public java.net.URL[] getURLs(java.lang.ClassLoader classLoader)
从接口复制的说明:URLClassPathHandleGet 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)从接口复制的说明:URLClassPathHandleRemove the Class-PathURLfrom the specifiedClassLoader- 指定者:
removeURL在接口中URLClassPathHandle- 参数:
classLoader- the specifiedClassLoaderurl- the Class-PathURL- 返回:
- if removed, return
true, otherwisefalse
-
setPriority
public final void setPriority(int priority)
-
getPriority
public final int getPriority()
从接口复制的说明:PrioritizedGet 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()
-
-