public abstract class NamingEntry extends Object
Modifier and Type | Field and Description |
---|---|
static String |
__contextName |
protected String |
jndiName |
protected String |
namingEntryNameString |
protected String |
objectNameString |
protected Object |
objectToBind |
Constructor and Description |
---|
NamingEntry(Object scope,
String jndiName,
Object object) |
NamingEntry(String jndiName,
Object object)
Create a NamingEntry.
|
Modifier and Type | Method and Description |
---|---|
void |
bindToENC(String localName)
Add a java:comp/env binding for the object represented by this NamingEntry,
but bind it as the name supplied
|
String |
getJndiName()
Get the unique name of the object
relative to the scope
|
String |
getJndiNameInScope()
Get the name of the object, fully
qualified with the scope
|
Object |
getObjectToBind()
Get the object that is to be bound
|
void |
release()
Unbind this NamingEntry entirely
|
protected void |
save(Object scope)
Save the NamingEntry for later use.
|
void |
unbindENC()
Unbind this NamingEntry from a java:comp/env
|
public static final String __contextName
protected String jndiName
protected Object objectToBind
protected String namingEntryNameString
protected String objectNameString
public NamingEntry(Object scope, String jndiName, Object object) throws NamingException
NamingException
public NamingEntry(String jndiName, Object object) throws NamingException
jndiName
- the name of the object which will eventually be in java:comp/envobject
- the object to be boundNamingException
public void bindToENC(String localName) throws NamingException
NamingException
public void unbindENC()
public void release()
public String getJndiName()
public Object getObjectToBind() throws NamingException
NamingException
public String getJndiNameInScope()
protected void save(Object scope) throws NamingException
NamingException
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.