Package io.microsphere.classloading
Interface URLClassPathHandle
-
- All Known Implementing Classes:
AbstractURLClassPathHandle
,ClassicURLClassPathHandle
,ModernURLClassPathHandle
,NoOpURLClassPathHandle
public interface URLClassPathHandle
The handle interface for URL Class-Path- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
ClassicURLClassPathHandle
,ModernURLClassPathHandle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default 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
-
-
-
Method Detail
-
supports
boolean supports()
Supports or not- Returns:
- if supports, return
true
, otherwisefalse
-
getURLs
@Nonnull default java.net.URL[] getURLs(java.lang.ClassLoader classLoader)
Get the Class-Path URLs from the specifiedClassLoader
- Parameters:
classLoader
- the specifiedClassLoader
- Returns:
- the non-null array of
URLs
-
removeURL
boolean removeURL(java.lang.ClassLoader classLoader, java.net.URL url)
Remove the Class-PathURL
from the specifiedClassLoader
- Parameters:
classLoader
- the specifiedClassLoader
url
- the Class-PathURL
- Returns:
- if removed, return
true
, otherwisefalse
-
-