Package io.microsphere.classloading
Interface URLClassPathHandle
-
- All Known Implementing Classes:
AbstractURLClassPathHandle,ClassicURLClassPathHandle,ModernURLClassPathHandle,NoOpURLClassPathHandle
public interface URLClassPathHandleThe 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 specifiedClassLoaderbooleanremoveURL(java.lang.ClassLoader classLoader, java.net.URL url)Remove the Class-PathURLfrom the specifiedClassLoaderbooleansupports()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-PathURLfrom the specifiedClassLoader- Parameters:
classLoader- the specifiedClassLoaderurl- the Class-PathURL- Returns:
- if removed, return
true, otherwisefalse
-
-