Top Inners Fields Constructors Methods
com.mchange.v2.naming

public final Class ReferenceableUtils

extends Object
Class Inheritance
Imports
java.net.*, javax.naming.*, com.mchange.v2.log.MLevel, .MLog, .MLogger, javax.naming.spi.ObjectFactory, java.util.Hashtable

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ReferenceableUtils.ExtractRec

Deprecated nesting references seemed useful until I realized that references are Serializable and can be stored in a BinaryRefAddr. Oops.

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv static final MLogger
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public 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.

public 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.

public static String
literalNullToNull(String s)

A null string value in a Reference sometimes goes to the literal "null".

public static Object
referenceToObject(Reference ref, Name name, Context nameCtx, Hashtable<K, V> env)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CURRENT_REF_VERSIONback to summary
pack-priv static final int CURRENT_REF_VERSION
loggerback to summary
pack-priv static final MLogger logger
REFADDR_CLASSNAMEback to summary
pack-priv static final String REFADDR_CLASSNAME
REFADDR_FACTORYback to summary
pack-priv static final String REFADDR_FACTORY
REFADDR_FACTORY_CLASS_LOCATIONback to summary
pack-priv static final String REFADDR_FACTORY_CLASS_LOCATION
REFADDR_SIZEback to summary
pack-priv static final String REFADDR_SIZE
REFADDR_VERSIONback to summary
pack-priv static final String REFADDR_VERSION

Constructor Detail

ReferenceableUtilsback to summary
private ReferenceableUtils()

Method Detail

appendToReferenceback to summary
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.

extractNestedReferenceback to summary
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.

literalNullToNullback to summary
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.

referenceToObjectback to summary
public static Object referenceToObject(Reference ref, Name name, Context nameCtx, Hashtable<K, V> env) throws NamingException
com.mchange.v2.naming back to summary

public Class ReferenceableUtils.ExtractRec

extends Object
Class Inheritance

Deprecated

nesting references seemed useful until I realized that references are Serializable and can be stored in a BinaryRefAddr. Oops.

Field Summary

Modifier and TypeField and Description
public int
index

return the first RefAddr index that the function HAS NOT read to extract the reference.

public Reference

Constructor Summary

AccessConstructor and Description
private
ExtractRec(Reference ref, int index)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

indexback to summary
public int index

return the first RefAddr index that the function HAS NOT read to extract the reference.

refback to summary
public Reference ref

Constructor Detail

ExtractRecback to summary
private ExtractRec(Reference ref, int index)