org.mortbay.jetty.plus.naming
Class EnvEntry

java.lang.Object
  extended by org.mortbay.jetty.plus.naming.NamingEntry
      extended by org.mortbay.jetty.plus.naming.EnvEntry

public class EnvEntry
extends NamingEntry

EnvEntry


Field Summary
 
Fields inherited from class org.mortbay.jetty.plus.naming.NamingEntry
absoluteObjectNameString, context, isContainerScope, jndiName, namingEntryNameString, objectNameString, objectToBind, scope, SCOPE_CONTAINER, SCOPE_WEBAPP
 
Constructor Summary
EnvEntry(String jndiName, Object objToBind)
           
EnvEntry(String jndiName, Object objToBind, boolean overrideWebXml)
           
 
Method Summary
static void bindToENC(String name, Object value)
          Bind a name and value to java:comp/env, taking into account any overriding EnvEntrys in the environment, either local or global.
 boolean isOverrideWebXml()
           
static List lookupGlobalEnvEntries()
           
 
Methods inherited from class org.mortbay.jetty.plus.naming.NamingEntry
bindToENC, getJndiName, getObjectToBind, getScope, isGlobal, isLocal, makeNamingEntryName, release, save, setScope, unbindENC
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvEntry

public EnvEntry(String jndiName,
                Object objToBind)
         throws NamingException
Throws:
NamingException

EnvEntry

public EnvEntry(String jndiName,
                Object objToBind,
                boolean overrideWebXml)
         throws NamingException
Throws:
NamingException
Method Detail

bindToENC

public static void bindToENC(String name,
                             Object value)
                      throws NamingException
Bind a name and value to java:comp/env, taking into account any overriding EnvEntrys in the environment, either local or global.

Parameters:
name - the name from web.xml env-entry
value - the value from web.xml env-entry
Throws:
NamingException

lookupGlobalEnvEntries

public static List lookupGlobalEnvEntries()
                                   throws NamingException
Throws:
NamingException

isOverrideWebXml

public boolean isOverrideWebXml()


Copyright © 2008 Mort Bay Consulting. All Rights Reserved.