Class ASURLClassLoader.URLEntry

  • Enclosing class:
    ASURLClassLoader

    protected static final class ASURLClassLoader.URLEntry
    extends Object
    URL entry - keeps track of the url resources.
    • Method Detail

      • setProtectionDomain

        public void setProtectionDomain​(ClassLoader ejbClassLoader,
                                        Certificate[] signers)
                                 throws MalformedURLException
        Sets ProtectionDomain with CodeSource including Signers in Entry for use in call to defineClass.
        Parameters:
        signers - the array of signer certs or null
        Throws:
        MalformedURLException
      • equals

        public boolean equals​(Object obj)
        Returns true if two URL entries has equal URLs.
        Overrides:
        equals in class Object
        Parameters:
        obj - URLEntry to compare against
        Returns:
        true if both entry has equal URL
      • hashCode

        public int hashCode()
        Since equals is overridden, we need to override hashCode as well.
        Overrides:
        hashCode in class Object
      • close

        public void close()