com.sapportals.portal.prt.jndisupport

Class JNDISupport

java.lang.Object
  extended by com.sapportals.portal.prt.jndisupport.util.AbstractHierarchicalContext
      extended by com.sapportals.portal.prt.jndisupport.util.MemoryHierarchicalContext
          extended by com.sapportals.portal.prt.jndisupport.JNDISupport
All Implemented Interfaces:
Context

public class JNDISupport
extends MemoryHierarchicalContext


Field Summary
static String JNDI_CONTEXT_FACTORIES
           
static String JNDI_FACTORIES
           
static String JNDI_OBJECT_FACTORIES
           
static String JNDI_STATE_FACTORIES
           
static String JNDI_URL_CONTEXT_FACTORIES
           
 
Fields inherited from class com.sapportals.portal.prt.jndisupport.util.AbstractHierarchicalContext
m_atomicName, m_env, m_parent
 
Fields inherited from interface javax.naming.Context
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES
 
Method Summary
static void destroyInstance()
           
 InitialContextFactory getContextFactory(String className)
           
 Context getInitialContext()
          Gets an InitialContext taking care of class loading separation
 Context getInitialContext(Hashtable env)
          Gets an InitialContext taking care of class loading separation
 DirContext getInitialDirContext(Hashtable env)
          Gets an InitialContext taking care of class loading separation
static JNDISupport getInstance()
          returns a context handling JNDI factories
 Object getObject(String path, String name)
           
 ObjectFactory getObjectFactory(String className)
           
protected  MemoryHierarchicalContext getShortcut(String shortcutName)
           
 StateFactory getStateFactory(String className)
           
 ObjectFactory getURLContextFactory(String scheme)
           
 void init()
          creates all the folders
 
Methods inherited from class com.sapportals.portal.prt.jndisupport.util.MemoryHierarchicalContext
addChildContext, bindChild, cleanHierarchy, createChildContext, destroym_bindings, getChildNames, getChildNames, getChildObject, getChildObject, listBindingsChildren, listNamingChildren, lookupChild, prepare, rebindChild, removeChild, renameChild
 
Methods inherited from class com.sapportals.portal.prt.jndisupport.util.AbstractHierarchicalContext
addToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getContextName, getEnvironment, getMyComponents, getNameInNamespace, getNameParser, getNameParser, getNameParser, getParentContext, getSeparator, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, toString, unbind, unbind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

JNDI_FACTORIES

public static final String JNDI_FACTORIES
See Also:
Constant Field Values

JNDI_OBJECT_FACTORIES

public static final String JNDI_OBJECT_FACTORIES
See Also:
Constant Field Values

JNDI_STATE_FACTORIES

public static final String JNDI_STATE_FACTORIES
See Also:
Constant Field Values

JNDI_CONTEXT_FACTORIES

public static final String JNDI_CONTEXT_FACTORIES
See Also:
Constant Field Values

JNDI_URL_CONTEXT_FACTORIES

public static final String JNDI_URL_CONTEXT_FACTORIES
See Also:
Constant Field Values
Method Detail

init

public void init()
creates all the folders

Overrides:
init in class AbstractHierarchicalContext

getInstance

public static JNDISupport getInstance()
returns a context handling JNDI factories


destroyInstance

public static void destroyInstance()

getInitialContext

public Context getInitialContext()
                          throws NamingException
Gets an InitialContext taking care of class loading separation

Throws:
NamingException

getInitialContext

public Context getInitialContext(Hashtable env)
                          throws NamingException
Gets an InitialContext taking care of class loading separation

Throws:
NamingException

getInitialDirContext

public DirContext getInitialDirContext(Hashtable env)
                                throws NamingException
Gets an InitialContext taking care of class loading separation

Throws:
NamingException

getContextFactory

public InitialContextFactory getContextFactory(String className)

getObjectFactory

public ObjectFactory getObjectFactory(String className)

getStateFactory

public StateFactory getStateFactory(String className)

getURLContextFactory

public ObjectFactory getURLContextFactory(String scheme)

getShortcut

protected MemoryHierarchicalContext getShortcut(String shortcutName)

getObject

public Object getObject(String path,
                        String name)
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/api api EP-PIN
[sap.com] EP-BASIS-API [sap.com] tc/epbc/basis/jndisupportdeprecated api EP-PIN-PRT
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/lib/api api EP-PIN


Copyright 2011 SAP AG Complete Copyright Notice