|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 |
_scope
|
Constructor Summary | |
---|---|
protected |
NamingEntry(java.lang.Object scope,
java.lang.String jndiName)
|
protected |
NamingEntry(java.lang.String jndiName)
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 |
void |
release()
Unbind this NamingEntry entirely |
protected void |
save(java.lang.Object object)
Save the NamingEntry for later use. |
java.lang.String |
toString()
|
void |
unbindENC()
Unbind this NamingEntry from a java:comp/env |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __contextName
protected final java.lang.Object _scope
protected final java.lang.String _jndiName
protected java.lang.String _namingEntryNameString
protected java.lang.String _objectNameString
Constructor Detail |
---|
protected NamingEntry(java.lang.Object scope, java.lang.String jndiName) throws javax.naming.NamingException
javax.naming.NamingException
protected NamingEntry(java.lang.String jndiName) throws javax.naming.NamingException
jndiName
- the name of the object which will eventually be in java:comp/env
javax.naming.NamingException
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
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.String getJndiNameInScope()
protected void save(java.lang.Object object) throws javax.naming.NamingException
javax.naming.NamingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |