com.mchange.v2.naming
Class ReferenceableUtils

java.lang.Object
  extended by com.mchange.v2.naming.ReferenceableUtils

public final class ReferenceableUtils
extends Object


Nested Class Summary
static class ReferenceableUtils.ExtractRec
          Deprecated. nesting references seemed useful until I realized that references are Serializable and can be stored in a BinaryRefAddr. Oops.
 
Method Summary
static void appendToReference(Reference appendTo, Reference orig)
          Deprecated. nesting references seemed useful until I realized that references are Serializable and can be stored in a BinaryRefAddr. Oops.
static ReferenceableUtils.ExtractRec extractNestedReference(Reference extractFrom, int index)
          Deprecated. nesting references seemed useful until I realized that references are Serializable and can be stored in a BinaryRefAddr. Oops.
static String literalNullToNull(String s)
          A null string value in a Reference sometimes goes to the literal "null".
static Object referenceToObject(Reference ref, Name name, Context nameCtx, Hashtable env)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

literalNullToNull

public static String literalNullToNull(String s)
A null string value in a Reference sometimes goes to the literal "null". Sigh. We convert this string to a Java null.


referenceToObject

public static Object referenceToObject(Reference ref,
                                       Name name,
                                       Context nameCtx,
                                       Hashtable env)
                                throws NamingException
Throws:
NamingException

appendToReference

public static void appendToReference(Reference appendTo,
                                     Reference orig)
                              throws NamingException
Deprecated. nesting references seemed useful until I realized that references are Serializable and can be stored in a BinaryRefAddr. Oops.

Throws:
NamingException

extractNestedReference

public static ReferenceableUtils.ExtractRec extractNestedReference(Reference extractFrom,
                                                                   int index)
                                                            throws NamingException
Deprecated. nesting references seemed useful until I realized that references are Serializable and can be stored in a BinaryRefAddr. Oops.

Throws:
NamingException