oracle.adf.share.jndi
Class AdfInitialContext
java.lang.Object
oracle.adfnmc.javax.naming.InitialContext
oracle.adf.share.jndi.AdfInitialContext
- All Implemented Interfaces:
- AdfJndiContext, ConnectionEventContext, oracle.adfnmc.javax.naming.Context, oracle.adfnmc.javax.naming.event.EventContext
public class AdfInitialContext
- extends oracle.adfnmc.javax.naming.InitialContext
- implements AdfJndiContext, ConnectionEventContext
AdfInitialContext extends InitialContext, adding support for the methods
defined by the AdfJndiContext. The methods defined by AdfJndiContext let
clients save and reload the contents of a Context without closing it.
This subclass is required because InitialContext does not provide any public
methods to access the underlying Context that is created by the NamingManager.
ADFConfig and its supporting classes create an instance of AdfInitialContext
instead of InitialContext. If the configuration is changed so the underlying
Context is not an instance of AdfJndiContext, the additional methods will
raise exceptions
NOTE: AdfJndiContext support is required by the Resource Catalog Service.
Fields inherited from class oracle.adfnmc.javax.naming.InitialContext |
defaultInitCtx, gotDefault, myProps |
Fields inherited from interface oracle.adfnmc.javax.naming.event.EventContext |
OBJECT_SCOPE, ONELEVEL_SCOPE, SUBTREE_SCOPE |
Fields inherited from interface oracle.adfnmc.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 |
Methods inherited from class oracle.adfnmc.javax.naming.InitialContext |
addToEnvironment, bind, bind, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getDefaultInitCtx, getEnvironment, getNameInNamespace, getNameParser, getNameParser, getURLOrDefaultInitCtx, getURLOrDefaultInitCtx, init, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.adfnmc.javax.naming.Context |
addToEnvironment, bind, bind, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getNameInNamespace, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbind |
CLASS_INSTANCE
public static final java.lang.Class CLASS_INSTANCE
AdfInitialContext
public AdfInitialContext(Hashtable env)
throws oracle.adfnmc.javax.naming.NamingException
- Throws:
oracle.adfnmc.javax.naming.NamingException
AdfInitialContext
public AdfInitialContext(HashMap env)
throws oracle.adfnmc.javax.naming.NamingException
- Throws:
oracle.adfnmc.javax.naming.NamingException
newAdfInitialContext
public static AdfInitialContext newAdfInitialContext(Hashtable env,
java.lang.Class referenceClazz)
throws oracle.adfnmc.javax.naming.NamingException
- Throws:
oracle.adfnmc.javax.naming.NamingException
close
public void close()
throws oracle.adfnmc.javax.naming.NamingException
- Specified by:
close
in interface oracle.adfnmc.javax.naming.Context
- Overrides:
close
in class oracle.adfnmc.javax.naming.InitialContext
- Throws:
oracle.adfnmc.javax.naming.NamingException
reload
public void reload()
throws oracle.adfnmc.javax.naming.NamingException
- Specified by:
reload
in interface AdfJndiContext
- Throws:
oracle.adfnmc.javax.naming.NamingException
saveAs
public void saveAs(java.lang.String url)
throws oracle.adfnmc.javax.naming.NamingException
- Specified by:
saveAs
in interface AdfJndiContext
- Throws:
oracle.adfnmc.javax.naming.NamingException
save
public void save()
throws oracle.adfnmc.javax.naming.NamingException
- Specified by:
save
in interface AdfJndiContext
- Throws:
oracle.adfnmc.javax.naming.NamingException
getReferenceMap
public Map getReferenceMap()
throws oracle.adfnmc.javax.naming.NamingException
- Description copied from interface:
AdfJndiContext
- Return a Map containing a javax.naming.Reference object for each
corresponding JAXB ReferenceType.
- Specified by:
getReferenceMap
in interface AdfJndiContext
- Returns:
- a Map containing a JNDI Reference for each corresponding JAXB
ReferenceType. The key is the connection name.
- Throws:
oracle.adfnmc.javax.naming.NamingException
- if an exception occurs populating the Map.
hasChanged
public boolean hasChanged()
throws oracle.adfnmc.javax.naming.NamingException
- Throws:
oracle.adfnmc.javax.naming.NamingException
isAdfJndiContext
public boolean isAdfJndiContext()
- Returns true if the contained Context is an instance of
AdfJndiContext
.
- Returns:
- True if the contained Context is an instance of
AdfJndiContext
.
Otherwise false.
addNamingListener
public void addNamingListener(oracle.adfnmc.javax.naming.Name target,
int scope,
oracle.adfnmc.javax.naming.event.NamingListener l)
throws oracle.adfnmc.javax.naming.NamingException
- Specified by:
addNamingListener
in interface oracle.adfnmc.javax.naming.event.EventContext
- Throws:
oracle.adfnmc.javax.naming.NamingException
addNamingListener
public void addNamingListener(java.lang.String target,
int scope,
oracle.adfnmc.javax.naming.event.NamingListener l)
throws oracle.adfnmc.javax.naming.NamingException
- Specified by:
addNamingListener
in interface oracle.adfnmc.javax.naming.event.EventContext
- Throws:
oracle.adfnmc.javax.naming.NamingException
removeNamingListener
public void removeNamingListener(oracle.adfnmc.javax.naming.event.NamingListener l)
throws oracle.adfnmc.javax.naming.NamingException
- Specified by:
removeNamingListener
in interface oracle.adfnmc.javax.naming.event.EventContext
- Throws:
oracle.adfnmc.javax.naming.NamingException
addContextSaveListener
public void addContextSaveListener(ContextSaveListener l)
throws oracle.adfnmc.javax.naming.NamingException
- Specified by:
addContextSaveListener
in interface ConnectionEventContext
- Throws:
oracle.adfnmc.javax.naming.NamingException
removeContextSaveListener
public void removeContextSaveListener(ContextSaveListener l)
throws oracle.adfnmc.javax.naming.NamingException
- Specified by:
removeContextSaveListener
in interface ConnectionEventContext
- Throws:
oracle.adfnmc.javax.naming.NamingException
targetMustExist
public boolean targetMustExist()
- This implementation only supports listeners for targets that already exist
- Specified by:
targetMustExist
in interface oracle.adfnmc.javax.naming.event.EventContext
- Returns:
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.