org.mortbay.jndi

Class Util

public class Util extends Object

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

Version: 1.0

Author: Jan Bartel

Method Summary
static voidbind(Context ctx, String nameStr, Object obj)
Bind an object to a context ensuring all subcontexts are created if necessary
static MapflattenBindings(Context ctx, String name)
Do a deep listing of the bindings for a context.

Method Detail

bind

public static void bind(Context ctx, String nameStr, Object obj)
Bind an object to a context ensuring all subcontexts are created if necessary

Parameters: ctx the context into which to bind name the name relative to context to bind obj the object to be bound

Throws: NamingException if an error occurs

flattenBindings

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

Parameters: ctx the context containing the name for which to list the bindings name the name in the context to list

Returns: map: key is fully qualified name, value is the bound object

Throws: NamingException

Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.