Interface URLClassPathHandle

    • Method Detail

      • supports

        boolean supports()
        Supports or not
        Returns:
        if supports, return true, otherwise false
      • getURLs

        @Nonnull
        default java.net.URL[] getURLs​(@Nullable
                                       java.lang.ClassLoader classLoader)
        Get the Class-Path URLs from the specified ClassLoader
        Parameters:
        classLoader - the specified ClassLoader
        Returns:
        the non-null array of URLs
      • initializeLoaders

        default boolean initializeLoaders​(@Nullable
                                          java.lang.ClassLoader classLoader)
        Initialize the loaders of URL Class-Path from URLClassLoader
        Parameters:
        classLoader - ClassLoader
        Returns:
        true if initialized, otherwise false
      • removeURL

        boolean removeURL​(@Nullable
                          java.lang.ClassLoader classLoader,
                          @Nullable
                          java.net.URL url)
        Remove the Class-Path URL from the specified ClassLoader
        Parameters:
        classLoader - the specified ClassLoader
        url - the Class-Path URL
        Returns:
        if removed, return true, otherwise false