Package org.proxy4j.core.util
Class Key
- java.lang.Object
-
- org.proxy4j.core.util.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 Summary
Constructors Constructor Description Key(ClassLoader classLoader)EachKeyimplementation takes the class loader of the proxy type as well as the classes which are being proxied.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanequals(Object o)EveryKeysubclass must define its ownObject.equals(Object)method.protected ClassLoadergetClassLoader()Returns the class loader of the proxy.abstract inthashCode()EveryKeysubclass must define its ownObject.hashCode()method.
-
-
-
Constructor Detail
-
Key
public Key(ClassLoader classLoader)
EachKeyimplementation 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
-
equals
public abstract boolean equals(Object o)
EveryKeysubclass must define its ownObject.equals(Object)method.
-
hashCode
public abstract int hashCode()
EveryKeysubclass must define its ownObject.hashCode()method.
-
-