org.eclipse.jetty.plus.jndi
类 NamingEntryUtil

java.lang.Object
  继承者 org.eclipse.jetty.plus.jndi.NamingEntryUtil

public class NamingEntryUtil
extends Object


构造方法摘要
NamingEntryUtil()
           
 
方法摘要
static boolean bindToENC(Object scope, String asName, String mappedName)
          Link a name in a webapp's java:/comp/evn namespace to a pre-existing resource.
static Context getContextForNamingEntries(Object scope)
           
static Context getContextForScope(Object scope)
           
static Name getNameForScope(Object scope)
           
static Object lookup(Object scope, String jndiName)
           
static List<Object> lookupNamingEntries(Object scope, Class<?> clazz)
          Get all NameEntries of a certain type in the given naming environment scope (server-wide names or context-specific names)
static NamingEntry lookupNamingEntry(Object scope, String jndiName)
          Find a NamingEntry in the given scope.
static Name makeNamingEntryName(NameParser parser, NamingEntry namingEntry)
           
static Name makeNamingEntryName(NameParser parser, String jndiName)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

NamingEntryUtil

public NamingEntryUtil()
方法详细信息

bindToENC

public static boolean bindToENC(Object scope,
                                String asName,
                                String mappedName)
                         throws NamingException
Link a name in a webapp's java:/comp/evn namespace to a pre-existing resource. The pre-existing resource can be either in the webapp's naming environment, or in the container's naming environment. Webapp's environment takes precedence over the server's namespace.

参数:
scope - the scope of the lookup
asName - the name to bind as
mappedName - the name from the environment to link to asName
抛出:
NamingException

lookupNamingEntry

public static NamingEntry lookupNamingEntry(Object scope,
                                            String jndiName)
                                     throws NamingException
Find a NamingEntry in the given scope.

参数:
scope -
jndiName -
返回:
the naming entry for the given scope
抛出:
NamingException

lookup

public static Object lookup(Object scope,
                            String jndiName)
                     throws NamingException
抛出:
NamingException

lookupNamingEntries

public static List<Object> lookupNamingEntries(Object scope,
                                               Class<?> clazz)
                                        throws NamingException
Get all NameEntries of a certain type in the given naming environment scope (server-wide names or context-specific names)

参数:
scope -
clazz - the type of the entry
返回:
all NameEntries of a certain type in the given naming environment scope (server-wide names or context-specific names)
抛出:
NamingException

makeNamingEntryName

public static Name makeNamingEntryName(NameParser parser,
                                       NamingEntry namingEntry)
                                throws NamingException
抛出:
NamingException

makeNamingEntryName

public static Name makeNamingEntryName(NameParser parser,
                                       String jndiName)
                                throws NamingException
抛出:
NamingException

getNameForScope

public static Name getNameForScope(Object scope)

getContextForScope

public static Context getContextForScope(Object scope)
                                  throws NamingException
抛出:
NamingException

getContextForNamingEntries

public static Context getContextForNamingEntries(Object scope)
                                          throws NamingException
抛出:
NamingException


Copyright © 2013. All Rights Reserved.