|
||||||||||
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 | |
---|---|
protected String |
absoluteObjectNameString
|
protected Context |
context
|
protected boolean |
isContainerScope
|
protected String |
jndiName
|
protected String |
namingEntryNameString
|
protected String |
objectNameString
|
protected Object |
objectToBind
|
protected static ThreadLocal |
scope
|
static int |
SCOPE_CONTAINER
|
static int |
SCOPE_WEBAPP
|
Constructor Summary | |
---|---|
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 |
static int |
getScope()
|
boolean |
isGlobal()
Check if this naming entry was global or locally scoped to a webapp |
boolean |
isLocal()
|
static Name |
makeNamingEntryName(NameParser parser,
String jndiName)
|
void |
release()
Unbind this NamingEntry entirely |
protected void |
save()
Save the NamingEntry for later use. |
static void |
setScope(int scopeType)
|
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 int SCOPE_CONTAINER
public static final int SCOPE_WEBAPP
protected String jndiName
protected Object objectToBind
protected String absoluteObjectNameString
protected String namingEntryNameString
protected String objectNameString
protected Context context
protected boolean isContainerScope
protected static ThreadLocal scope
Constructor Detail |
---|
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 static void setScope(int scopeType)
public static int getScope()
public static Name makeNamingEntryName(NameParser parser, String jndiName) throws NamingException
NamingException
public void bindToENC(String localName) throws NamingException
NamingException
public void unbindENC()
public void release()
public String getJndiName()
public Object getObjectToBind() throws NamingException
NamingException
public boolean isGlobal()
public boolean isLocal()
protected void save() throws NamingException
NamingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |