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 |
_scope |
Modifier | Constructor and Description |
---|---|
protected |
NamingEntry(java.lang.Object scope,
java.lang.String jndiName) |
protected |
NamingEntry(java.lang.String jndiName)
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
|
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
|
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
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/envjavax.naming.NamingException
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
Copyright © 2013. All Rights Reserved.