Package io.microsphere.classloading
Class ServiceLoadingURLClassPathHandle
- java.lang.Object
-
- io.microsphere.classloading.ServiceLoadingURLClassPathHandle
-
- All Implemented Interfaces:
URLClassPathHandle
,Prioritized
,java.lang.Comparable<Prioritized>
public class ServiceLoadingURLClassPathHandle extends java.lang.Object implements URLClassPathHandle
URLClassPathHandle
implementation based on the Service Loading mechanism- Since:
- URLClassPathHandle
- Author:
- Mercy
-
-
Field Summary
-
Fields inherited from interface io.microsphere.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description ServiceLoadingURLClassPathHandle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URL[]
getURLs(java.lang.ClassLoader classLoader)
Get the Class-Path URLs from the specifiedClassLoader
boolean
removeURL(java.lang.ClassLoader classLoader, java.net.URL url)
Remove the Class-PathURL
from the specifiedClassLoader
boolean
supports()
Supports or not-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.microsphere.lang.Prioritized
compareTo
-
Methods inherited from interface io.microsphere.classloading.URLClassPathHandle
getPriority, initializeLoaders
-
-
-
-
Method Detail
-
supports
public boolean supports()
Description copied from interface:URLClassPathHandle
Supports or not- Specified by:
supports
in interfaceURLClassPathHandle
- Returns:
- if supports, return
true
, otherwisefalse
-
getURLs
public java.net.URL[] getURLs(java.lang.ClassLoader classLoader)
Description copied from interface:URLClassPathHandle
Get the Class-Path URLs from the specifiedClassLoader
- Specified by:
getURLs
in interfaceURLClassPathHandle
- Parameters:
classLoader
- the specifiedClassLoader
- Returns:
- the non-null array of
URLs
-
removeURL
public boolean removeURL(java.lang.ClassLoader classLoader, java.net.URL url)
Description copied from interface:URLClassPathHandle
Remove the Class-PathURL
from the specifiedClassLoader
- Specified by:
removeURL
in interfaceURLClassPathHandle
- Parameters:
classLoader
- the specifiedClassLoader
url
- the Class-PathURL
- Returns:
- if removed, return
true
, otherwisefalse
-
-