public class MemoryModel extends AbstractModel
Constructor and Description |
---|
MemoryModel()
Creates a new instance of the memory model.
|
Modifier and Type | Method and Description |
---|---|
void |
bind(java.lang.String name,
java.lang.Object obj)
Rebinds an object as a child to the model.
|
protected AbstractModel |
create()
Creates a new instance of MemoryModel.
|
AbstractModel |
createSubcontext(java.lang.String name)
Creates a subcontext.
|
java.util.List |
list()
Lists the child names.
|
java.lang.Object |
lookup(java.lang.String name)
Returns the object from looking up a single link.
|
void |
unbind(java.lang.String name)
Unbinds an object as a child to the model.
|
copy, rename
protected AbstractModel create()
create
in class AbstractModel
public java.lang.Object lookup(java.lang.String name) throws javax.naming.NamingException
lookup
in class AbstractModel
name
- the name segment.javax.naming.NamingException
public void bind(java.lang.String name, java.lang.Object obj) throws javax.naming.NamingException
bind
in class AbstractModel
javax.naming.NamingException
public void unbind(java.lang.String name) throws javax.naming.NamingException
unbind
in class AbstractModel
javax.naming.NamingException
public AbstractModel createSubcontext(java.lang.String name) throws javax.naming.NamingException
createSubcontext
in class AbstractModel
javax.naming.NamingException
public java.util.List list()
list
in class AbstractModel