|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jetty.plus.jndi.NamingEntry
public abstract class NamingEntry
NamingEntry Base class for all jndi related entities. Instances of subclasses of this class are declared in jetty.xml or in a webapp's WEB-INF/jetty-env.xml file. NOTE: that all NamingEntries will be bound in a single namespace. The "global" level is just in the top level context. The "local" level is a context specific to a webapp.
Field Summary | |
---|---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
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 bound
javax.naming.NamingException
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |