org.eclipse.persistence.sdo.helper.delegates
Class AbstractHelperDelegator
java.lang.Object
org.eclipse.persistence.sdo.helper.delegates.AbstractHelperDelegator
- Direct Known Subclasses:
- SDOTypeHelperDelegator, SDOXMLHelperDelegator, SDOXSDHelperDelegator
public abstract class AbstractHelperDelegator
- extends java.lang.Object
Abstract class for SDO helper delegators. Delegates will shared on an application
basis. This class will return the key to be used to store/retrieve the delegates
for a given application.
Field Summary |
protected commonj.sdo.helper.HelperContext |
aHelperContext
|
Method Summary |
protected java.lang.Object |
getDelegateMapKey()
INTERNAL:
This method will return the key to be used to store/retrieve the delegates
for a given application. |
commonj.sdo.helper.HelperContext |
getHelperContext()
Return the helperContext that this instance is associated with. |
void |
setHelperContext(commonj.sdo.helper.HelperContext helperContext)
INTERNAL:
Set the helperContext that this instance is associated with. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
aHelperContext
protected commonj.sdo.helper.HelperContext aHelperContext
AbstractHelperDelegator
public AbstractHelperDelegator()
getDelegateMapKey
protected java.lang.Object getDelegateMapKey()
- INTERNAL:
This method will return the key to be used to store/retrieve the delegates
for a given application.
OC4J classLoader levels:
0 - APP.web (servlet/jsp) or APP.wrapper (ejb)
1 - APP.root (parent for helperContext)
2 - default.root
3 - system.root
4 - oc4j.10.1.3 (remote EJB) or org.eclipse.persistence:11.1.1.0.0
5 - api:1.4.0
6 - jre.extension:0.0.0
7 - jre.bootstrap:1.5.0_07 (with various J2SE versions)
- Returns:
- Application classloader for OC4J, application name for WebLogic,
otherwise Thread.currentThread().getContextClassLoader()
getHelperContext
public commonj.sdo.helper.HelperContext getHelperContext()
- Return the helperContext that this instance is associated with.
This context contains all helpers. If null, the default context
is returned.
- Returns:
- set helper context or, if null, the default context
- See Also:
HelperContext
,
HelperProvider
setHelperContext
public void setHelperContext(commonj.sdo.helper.HelperContext helperContext)
- INTERNAL:
Set the helperContext that this instance is associated with. This context
will contain all helpers, so inter-helper relationships are preserved.
- Parameters:
helperContext
- - See Also:
HelperContext