|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.sdo.helper.HelperContextMapKey
public class HelperContextMapKey
Class to facilitate caching of global helper contexts. Instances of this class are intended to be used as the key in the global helper context map in the SDOHelperContext class. Equality will be based on the applicationName attribute if set, or the class loader if applicationName is null. When caching on application name, the loader attribute will be used to determine if a redeployment has occurred; this is necessary, as in the case of a redeploy the applicationName would match, but the loader would be different. Note that all instances of this class are expected to have a loader set.
Constructor Summary | |
---|---|
HelperContextMapKey(ClassLoader classLoader)
This constructor should be used when caching on class loader. |
|
HelperContextMapKey(String applicationName,
ClassLoader classLoader)
This constructor should be used when caching on application name. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Equality will be based on the applicationName attribute if set, or the class loader if applicationName is null. |
String |
getApplicationName()
Return the applicationName value. |
ClassLoader |
getLoader()
Return the loader value. |
int |
hashCode()
Return a unique hashCode (as an int) for this instance. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HelperContextMapKey(ClassLoader classLoader)
loader
- public HelperContextMapKey(String applicationName, ClassLoader classLoader)
applicationName
- loader
- Method Detail |
---|
public String getApplicationName()
public ClassLoader getLoader()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
Object
- to be compared to this HelperContextMapKey instance
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |