public class MBeanContextImpl extends ContextImpl
Context
.
The actual storage of the persistent data is in
the AbstractModel
.Modifier and Type | Field and Description |
---|---|
protected static java.util.logging.Logger |
dbg |
protected static L10N |
L |
_env, _model, _name, log
Constructor and Description |
---|
MBeanContextImpl(AbstractModel model,
java.util.Hashtable env)
Creates a
ContextImpl . |
MBeanContextImpl(java.lang.String name,
AbstractModel model,
java.util.Hashtable env)
Creates a
ContextImpl . |
Modifier and Type | Method and Description |
---|---|
protected ContextImpl |
create(java.lang.String name,
AbstractModel model,
java.util.Hashtable env)
Creates a new instance of the
ContextImpl . |
protected java.lang.String |
parseFirst(java.lang.String name)
Parses the head of the name.
|
protected java.lang.String |
parseRest(java.lang.String name)
Parses the tail of the name.
|
java.lang.String |
toString()
Returns a string value.
|
addToEnvironment, bind, bind, close, composeName, composeName, create, createSingleSubcontext, createSubcontext, createSubcontext, destroySingleSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getFullPath, getFullPath, getModel, getName, getNameInNamespace, getNameParser, getNameParser, getSeparator, getSeparatorString, list, list, listBindings, listBindings, listSingle, lookup, lookup, lookupImpl, lookupLink, lookupLink, lookupSingle, rebind, rebind, rebindSingle, removeFromEnvironment, rename, rename, unbind, unbind, unbindSingle
protected static final java.util.logging.Logger dbg
protected static final L10N L
public MBeanContextImpl(AbstractModel model, java.util.Hashtable env)
ContextImpl
.model
- The underlying storage node.env
- The client's JNDI environment.public MBeanContextImpl(java.lang.String name, AbstractModel model, java.util.Hashtable env)
ContextImpl
.name
- JNDI name, used for error messages, etc.model
- The underlying storage node.env
- The client's JNDI environment.protected ContextImpl create(java.lang.String name, AbstractModel model, java.util.Hashtable env)
ContextImpl
. Subclasses will
override this method to return a new instance of the subclass.create
in class ContextImpl
name
- the JNDI name for the new contextmodel
- the underlying storage nodeenv
- the client's JNDI environment.protected java.lang.String parseFirst(java.lang.String name) throws javax.naming.NamingException
parseFirst
in class ContextImpl
javax.naming.NamingException
protected java.lang.String parseRest(java.lang.String name) throws javax.naming.NamingException
parseRest
in class ContextImpl
javax.naming.NamingException
public java.lang.String toString()
toString
in class ContextImpl