com.mchange.v2.naming
Class ReferenceableUtils

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

public final class ReferenceableUtils
extends java.lang.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(javax.naming.Reference appendTo, javax.naming.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(javax.naming.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 java.lang.String literalNullToNull(java.lang.String s)
          A null string value in a Reference sometimes goes to the literal "null".
static java.lang.Object referenceToObject(javax.naming.Reference ref, javax.naming.Name name, javax.naming.Context nameCtx, java.util.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 java.lang.String literalNullToNull(java.lang.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 java.lang.Object referenceToObject(javax.naming.Reference ref,
                                                 javax.naming.Name name,
                                                 javax.naming.Context nameCtx,
                                                 java.util.Hashtable env)
                                          throws javax.naming.NamingException
Throws:
javax.naming.NamingException

appendToReference

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

Throws:
javax.naming.NamingException

extractNestedReference

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

Throws:
javax.naming.NamingException