Class AbstractURLClassPathHandle

    • Constructor Detail

      • AbstractURLClassPathHandle

        public AbstractURLClassPathHandle()
    • Method Detail

      • getURLs

        @Nonnull
        public java.net.URL[] getURLs​(java.lang.ClassLoader classLoader)
        Description copied from interface: URLClassPathHandle
        Get the Class-Path URLs from the specified ClassLoader
        Specified by:
        getURLs in interface URLClassPathHandle
        Parameters:
        classLoader - the specified ClassLoader
        Returns:
        the non-null array of URLs
      • removeURL

        public final boolean removeURL​(java.lang.ClassLoader classLoader,
                                       java.net.URL url)
        Description copied from interface: URLClassPathHandle
        Remove the Class-Path URL from the specified ClassLoader
        Specified by:
        removeURL in interface URLClassPathHandle
        Parameters:
        classLoader - the specified ClassLoader
        url - the Class-Path URL
        Returns:
        if removed, return true, otherwise false
      • setPriority

        public final void setPriority​(int priority)
      • 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()