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