org.eclipse.jetty.jndi
类 NamingUtil

java.lang.Object
  继承者 org.eclipse.jetty.jndi.NamingUtil

public class NamingUtil
extends Object

Util.java Created: Tue Jul 1 18:26:17 2003

版本:
1.0

字段摘要
static Logger __log
           
 
构造方法摘要
NamingUtil()
           
 
方法摘要
static Context bind(Context ctx, String nameStr, Object obj)
          Bind an object to a context ensuring all sub-contexts are created if necessary
static Map flattenBindings(Context ctx, String name)
          Do a deep listing of the bindings for a context.
static void unbind(Context ctx)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

__log

public static final Logger __log
构造方法详细信息

NamingUtil

public NamingUtil()
方法详细信息

bind

public static Context bind(Context ctx,
                           String nameStr,
                           Object obj)
                    throws NamingException
Bind an object to a context ensuring all sub-contexts are created if necessary

参数:
ctx - the context into which to bind
nameStr - the name relative to context to bind
obj - the object to be bound
抛出:
NamingException - if an error occurs

unbind

public static void unbind(Context ctx)
                   throws NamingException
抛出:
NamingException

flattenBindings

public static Map flattenBindings(Context ctx,
                                  String name)
                           throws NamingException
Do a deep listing of the bindings for a context.

参数:
ctx - the context containing the name for which to list the bindings
name - the name in the context to list
返回:
map: key is fully qualified name, value is the bound object
抛出:
NamingException


Copyright © 2013. All Rights Reserved.