|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mortbay.jetty.plus.naming.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 String |
__contextName
|
protected String |
jndiName
|
protected String |
namingEntryNameString
|
protected String |
objectNameString
|
protected Object |
objectToBind
|
Constructor Summary | |
---|---|
NamingEntry(Object scope,
String jndiName,
Object object)
|
|
NamingEntry(String jndiName,
Object object)
Create a NamingEntry. |
Method Summary | |
---|---|
void |
bindToENC(String localName)
Add a java:comp/env binding for the object represented by this NamingEntry, but bind it as the name supplied |
String |
getJndiName()
Get the unique name of the object |
Object |
getObjectToBind()
Get the object that is to be bound |
void |
release()
Unbind this NamingEntry entirely |
protected void |
save(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 String __contextName
protected String jndiName
protected Object objectToBind
protected String namingEntryNameString
protected String objectNameString
Constructor Detail |
---|
public NamingEntry(Object scope, String jndiName, Object object) throws NamingException
NamingException
public NamingEntry(String jndiName, Object object) throws NamingException
jndiName
- the name of the object which will eventually be in java:comp/envobject
- the object to be bound
NamingException
Method Detail |
---|
public void bindToENC(String localName) throws NamingException
NamingException
public void unbindENC()
public void release()
public String getJndiName()
public Object getObjectToBind() throws NamingException
NamingException
protected void save(Object scope) throws NamingException
NamingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |