| java.lang.Object org.mortbay.jetty.plus.naming.NamingEntry
All known Subclasses: org.mortbay.jetty.plus.naming.Resource, org.mortbay.jetty.plus.naming.Transaction, org.mortbay.jetty.plus.naming.EnvEntry,
NamingEntry | abstract public class NamingEntry (Code) | | 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.
|
SCOPE_GLOBAL | final public static int SCOPE_GLOBAL(Code) | | |
SCOPE_LOCAL | final public static int SCOPE_LOCAL(Code) | | |
absoluteObjectNameString | protected String absoluteObjectNameString(Code) | | |
isGlobal | protected boolean isGlobal(Code) | | |
namingEntryNameString | protected String namingEntryNameString(Code) | | |
NamingEntry | public NamingEntry(String jndiName, Object object) throws NamingException(Code) | | Constructor
Parameters: jndiName - the name of the object which will eventually be in java:comp/env Parameters: object - the object to be bound throws: NamingException - |
getJndiName | public String getJndiName()(Code) | | Get the unique name of the object
|
getScope | public static int getScope()(Code) | | |
isGlobal | public boolean isGlobal()(Code) | | Check if this naming entry was global or locally scoped to a webapp
true if naming entry was bound at global scope, false otherwise |
lookupNamingEntries | public static List lookupNamingEntries(int scopeType, Class clazz) throws NamingException(Code) | | Get all NameEntries of a certain type in a context.
Parameters: scopeType - local or global Parameters: clazz - the type of the entry throws: NamingException - |
setScope | public static void setScope(int scopeType)(Code) | | |
unbind | public void unbind()(Code) | | Unbind this NamingEntry entirely
|
unbindEnv | public void unbindEnv()(Code) | | Unbind this NamingEntry from a java:comp/env
|
|
|