站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 server API Documentation 英文版文档

Util (JBoss Server API) - JBoss 3.2.7 server API Documentation 英文版文档


org.jboss.naming
Class Util

java.lang.Object
  extended byorg.jboss.naming.Util

public class Util
extends Object

A static utility class for common JNDI operations.

Version:
$Revision: 1.8.4.1 $
Author:
Scott.Stark@jboss.org, adrian@jboss.com

Constructor Summary
Util()
           
 
Method Summary
static void bind(Context ctx, Name name, Object value)
          Bind val to name in ctx, and make sure that all intermediate contexts exist
static void bind(Context ctx, String name, Object value)
          Bind val to name in ctx, and make sure that all intermediate contexts exist
static Context createSubcontext(Context ctx, Name name)
          Create a subcontext including any intermediate contexts.
static Context createSubcontext(Context ctx, String name)
          Create a subcontext including any intermediate contexts.
static void rebind(Context ctx, Name name, Object value)
          Rebind val to name in ctx, and make sure that all intermediate contexts exist
static void rebind(Context ctx, String name, Object value)
          Rebind val to name in ctx, and make sure that all intermediate contexts exist
static void unbind(Context ctx, Name name)
          Unbinds a name from ctx, and removes parents if they are empty
static void unbind(Context ctx, String name)
          Unbinds a name from ctx, and removes parents if they are empty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

createSubcontext

public static Context createSubcontext(Context ctx,
                                       String name)
                                throws NamingException
Create a subcontext including any intermediate contexts.

Returns:
The new or existing JNDI subcontext
Throws:
NamingException, - on any JNDI failure
NamingException

createSubcontext

public static Context createSubcontext(Context ctx,
                                       Name name)
                                throws NamingException
Create a subcontext including any intermediate contexts.

Returns:
The new or existing JNDI subcontext
Throws:
NamingException, - on any JNDI failure
NamingException

bind

public static void bind(Context ctx,
                        String name,
                        Object value)
                 throws NamingException
Bind val to name in ctx, and make sure that all intermediate contexts exist

Throws:
NamingException

bind

public static void bind(Context ctx,
                        Name name,
                        Object value)
                 throws NamingException
Bind val to name in ctx, and make sure that all intermediate contexts exist

Throws:
NamingException

rebind

public static void rebind(Context ctx,
                          String name,
                          Object value)
                   throws NamingException
Rebind val to name in ctx, and make sure that all intermediate contexts exist

Throws:
NamingException

rebind

public static void rebind(Context ctx,
                          Name name,
                          Object value)
                   throws NamingException
Rebind val to name in ctx, and make sure that all intermediate contexts exist

Throws:
NamingException

unbind

public static void unbind(Context ctx,
                          String name)
                   throws NamingException
Unbinds a name from ctx, and removes parents if they are empty

Throws:
NamingException

unbind

public static void unbind(Context ctx,
                          Name name)
                   throws NamingException
Unbinds a name from ctx, and removes parents if they are empty

Throws:
NamingException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.