Class Key

  • Direct Known Subclasses:
    ClassHashKey, MethodHashKey

    public abstract class Key
    extends Object

    Base class for compound keys used in caching proxy types.

    Author:
    Brennan Spies
    • Constructor Detail

      • Key

        public Key​(ClassLoader classLoader)
        Each Key implementation takes the class loader of the proxy type as well as the classes which are being proxied.
        Parameters:
        classLoader - The class loader of the proxy
    • Method Detail

      • getClassLoader

        protected ClassLoader getClassLoader()
        Returns the class loader of the proxy.
        Returns:
        The class loader
      • hashCode

        public abstract int hashCode()
        Every Key subclass must define its own Object.hashCode() method.
        Overrides:
        hashCode in class Object
        Returns:
        The hash code