public class DefaultMutableAppServerContext extends AbstractEventDirContext implements AppServerContext, AttributesProvider
| Modifier and Type | Field and Description |
|---|---|
protected AttributesProvider |
attribsProvider_ |
protected oracle.rc.asadapter.context.spi.DefaultMutableAppServerContext.ContextProviderSupport |
cps_ |
protected EnvironmentConstants |
envAdapter_ |
listenerSupport_, parent_ADD_ATTRIBUTE, REMOVE_ATTRIBUTE, REPLACE_ATTRIBUTE| Constructor and Description |
|---|
DefaultMutableAppServerContext(javax.naming.Context parent,
java.util.Hashtable env) |
| Modifier and Type | Method and Description |
|---|---|
void |
addContextProvider(ContextProvider provider) |
void |
addMutableContextListener(MutableContextListener listener) |
void |
addStructureChangeListener(StructureListener listener) |
protected boolean |
cacheEventsEnabled()
Whether changes to the cache should trigger events.
|
void |
close() |
void |
fireCacheChanged(MutableContextEvent event) |
void |
fireStructureChanged(StructureChangeEvent event) |
AppServerConnection |
getAppServerConnection() |
protected AppServerConnectionFactory |
getAppServerConnectionFactory() |
protected java.lang.String[] |
getAttributeIDs() |
javax.naming.directory.Attributes |
getAttributes(java.lang.String[] ids) |
ContextConfigurator |
getConfigurator() |
java.lang.String |
getConnectionId() |
java.lang.String |
getName() |
javax.naming.Context |
getParentContext() |
protected java.lang.Object |
getProperty(java.lang.String id) |
boolean |
isRoot() |
protected StructureListenerSupport |
listenerSupport() |
protected void |
markCacheInvalid()
Invalidates the context cache.
|
protected boolean |
namingEventsEnabled()
Whether cache events should be propagated to NamingListeners.
|
protected AttributesProvider |
newAttributeProvider(java.util.Hashtable hashtable) |
protected DefaultMutableAppServerContext |
newInstance()
Utility method to create a new context with same environment as this Context,
and with 'this' as the parent.
|
protected oracle.rc.asadapter.context.spi.NamingListenerSupport |
newListenerSupport(javax.naming.Context ctx) |
void |
removeContextProvider(ContextProvider provider) |
void |
removeMutableContextListener(MutableContextListener listener) |
void |
removeStructureChangeListener(StructureListener listener) |
void |
resync()
Causes this context to be refreshed with latest contents of the underlying
source.
|
void |
setAttributes(javax.naming.directory.Attributes attribs) |
protected void |
setAttributesProvider(AttributesProvider attribsProvider) |
void |
setConfigurator(ContextConfigurator configurator) |
protected java.lang.Object |
setProperty(java.lang.String id,
java.lang.Object value) |
addNamingListener, addNamingListener, bind, createSubcontext, destroySubcontext, emptyNameException, fireNamingEvent, getAttributes, getNameInNamespace, list, listBindings, localSearch, lookup, modifyAttributes, nameNotFoundException, notContextException, notEventContextException, rebind, removeNamingListener, rename, search, search, targetMustExist, unbind, unsupportedOperationExceptionaddToEnvironment, bind, bind, bind, composeName, composeName, createSubcontext, createSubcontext, createSubcontext, destroySubcontext, getAttributes, getAttributes, getAttributes, getEnvInternal, getEnvironment, getNameParser, getNameParser, getSchema, getSchema, getSchemaClassDefinition, getSchemaClassDefinition, list, listBindings, lookup, lookupLink, lookupLink, modifyAttributes, modifyAttributes, modifyAttributes, operationNotSupported, rebind, rebind, rebind, removeFromEnvironment, rename, search, search, search, search, search, search, unbindclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbind, bind, createSubcontext, createSubcontext, getAttributes, getAttributes, getAttributes, getAttributes, getSchema, getSchema, getSchemaClassDefinition, getSchemaClassDefinition, modifyAttributes, modifyAttributes, modifyAttributes, modifyAttributes, rebind, rebind, search, search, search, search, search, search, search, searchaddNamingListener, addNamingListener, removeNamingListener, targetMustExistaddToEnvironment, 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, unbindprotected oracle.rc.asadapter.context.spi.DefaultMutableAppServerContext.ContextProviderSupport cps_
protected EnvironmentConstants envAdapter_
protected AttributesProvider attribsProvider_
public DefaultMutableAppServerContext(javax.naming.Context parent,
java.util.Hashtable env)
protected oracle.rc.asadapter.context.spi.NamingListenerSupport newListenerSupport(javax.naming.Context ctx)
newListenerSupport in class AbstractEventDirContextprotected void setAttributesProvider(AttributesProvider attribsProvider)
public void setAttributes(javax.naming.directory.Attributes attribs)
public void setConfigurator(ContextConfigurator configurator)
public ContextConfigurator getConfigurator()
public void addContextProvider(ContextProvider provider)
public void removeContextProvider(ContextProvider provider)
public boolean isRoot()
protected AppServerConnectionFactory getAppServerConnectionFactory()
public java.lang.String getConnectionId()
public AppServerConnection getAppServerConnection()
getAppServerConnection in interface AppServerContextpublic void close()
close in interface javax.naming.Contextclose in class AbstractEventDirContextprotected DefaultMutableAppServerContext newInstance() throws javax.naming.NamingException
attrs - javax.naming.NamingExceptionpublic java.lang.String getName()
public javax.naming.directory.Attributes getAttributes(java.lang.String[] ids)
throws javax.naming.NamingException
getAttributes in interface AttributesProviderjavax.naming.NamingExceptionprotected void markCacheInvalid()
The cache may still contain old content till list() is called.
public void resync()
MutableAppServerContextresync in interface MutableAppServerContextpublic javax.naming.Context getParentContext()
getParentContext in interface AppServerContextprotected boolean cacheEventsEnabled()
MutableContextEvents.protected boolean namingEventsEnabled()
public void addStructureChangeListener(StructureListener listener)
addStructureChangeListener in interface Mutablepublic void removeStructureChangeListener(StructureListener listener)
removeStructureChangeListener in interface Mutablepublic void fireStructureChanged(StructureChangeEvent event)
fireStructureChanged in interface Mutablepublic void addMutableContextListener(MutableContextListener listener)
addMutableContextListener in interface MutableAppServerContextpublic void removeMutableContextListener(MutableContextListener listener)
removeMutableContextListener in interface MutableAppServerContextpublic void fireCacheChanged(MutableContextEvent event)
protected StructureListenerSupport listenerSupport()
listenerSupport in class AbstractEventDirContextprotected AttributesProvider newAttributeProvider(java.util.Hashtable hashtable)
protected java.lang.Object setProperty(java.lang.String id,
java.lang.Object value)
protected java.lang.Object getProperty(java.lang.String id)
protected java.lang.String[] getAttributeIDs()