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.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| protected final String | |
| protected String | |
| protected String | |
| protected final Object | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| protected | NamingEntry(Object
an object whose stringified form will be used as a node in the context tree under which the objectToBind will be bound scope, String the name associated with the objectToBind jndiName, Object the object to bind objectToBind)Create a NamingEntry. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public String | Returns: the unique jndi name of the objectGet the unique name of the object relative to the scope |
| public String | Returns: the name of the object, fully qualified with the scopeGet the name of the object, fully qualified with the scope |
| public String | |
| public void | |
| protected void | |
| public String | |
| protected String | |
| public void |
| __contextName | back to summary |
|---|---|
| public static final String __contextName | |
| _jndiName | back to summary |
|---|---|
| protected final String _jndiName | |
| _namingEntryNameString | back to summary |
|---|---|
| protected String _namingEntryNameString | |
| _objectNameString | back to summary |
|---|---|
| protected String _objectNameString | |
| _scope | back to summary |
|---|---|
| protected final Object _scope | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| NamingEntry | back to summary |
|---|---|
| protected NamingEntry(Object scope, String jndiName, Object objectToBind) throws NamingException Create a NamingEntry. A NamingEntry is a name associated with a value which can later be looked up in JNDI by a webapp. We create the NamingEntry and put it into JNDI where it can be linked to the webapp's env-entry, resource-ref etc entries.
| |
| bindToENC | back to summary |
|---|---|
| public void bindToENC(String localName) throws NamingException Add a
| |
| getJndiName | back to summary |
|---|---|
| public String getJndiName() Get the unique name of the object relative to the scope
| |
| getJndiNameInScope | back to summary |
|---|---|
| public String getJndiNameInScope() Get the name of the object, fully qualified with the scope
| |
| getNamingEntryNameInScope | back to summary |
|---|---|
| public String getNamingEntryNameInScope() | |
| release | back to summary |
|---|---|
| public void release() Unbind this NamingEntry entirely | |
| save | back to summary |
|---|---|
| protected void save(Object object) throws NamingException Save the NamingEntry for later use. Saving is done by binding both the NamingEntry itself, and the value it represents into JNDI. In this way, we can link to the value it represents later, but also still retrieve the NamingEntry itself too. The object is bound at scope/jndiName and the NamingEntry is bound at scope/__/jndiName. eg jdbc/foo : DataSource __/jdbc/foo : NamingEntry
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| toStringMetaData | back to summary |
|---|---|
| protected String toStringMetaData() | |
| unbindENC | back to summary |
|---|---|
| public void unbindENC() Unbind this NamingEntry from a java:comp/env | |