Class ReferenceableUtils
java.lang.Object
com.mchange.v2.naming.ReferenceableUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.nesting references seemed useful until I realized that references are Serializable and can be stored in a BinaryRefAddr. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic voidappendToReference(Reference appendTo, Reference orig) Deprecated.nesting references seemed useful until I realized that references are Serializable and can be stored in a BinaryRefAddr.static voidassertAcceptableName(Object jndiName, PropertiesConfig pcfg) extractNestedReference(Reference extractFrom, int index) Deprecated.nesting references seemed useful until I realized that references are Serializable and can be stored in a BinaryRefAddr.static StringA null string value in a Reference sometimes goes to the literal "null".static ObjectreferenceToObject(Reference ref, Name name, Context nameCtx, Hashtable env) static ObjectreferenceToObject(Reference ref, Name name, Context nameCtx, Hashtable env, PropertiesConfig pcfg) static ObjectreferenceToObject(Reference ref, Name name, Context nameCtx, Hashtable env, Set allowedFactoryClassNames) The allowedFactoryClassNames whitelist test can be (but generally should not be) circumvented by explicitly providing ReferenceUtils.ALL_FACTORY_CLASS_NAMES as the argument allowedFactoryClassNames.static ObjectreferenceToObject(Reference ref, Name name, Context nameCtx, Hashtable env, Set allowedFactoryClassNames, PropertiesConfig pcfg) The allowedFactoryClassNames whitelist test can be (but generally should not be) circumvented by explicitly providing ReferenceUtils.ALL_FACTORY_CLASS_NAMES as the argument allowedFactoryClassNames.static boolean
-
Field Details
-
ALL_FACTORY_CLASS_NAMES
-
-
Method Details
-
literalNullToNull
-
referenceToObject
public static Object referenceToObject(Reference ref, Name name, Context nameCtx, Hashtable env) throws NamingException - Throws:
NamingException
-
referenceToObject
public static Object referenceToObject(Reference ref, Name name, Context nameCtx, Hashtable env, PropertiesConfig pcfg) throws NamingException - Throws:
NamingException
-
referenceToObject
public static Object referenceToObject(Reference ref, Name name, Context nameCtx, Hashtable env, Set allowedFactoryClassNames) throws NamingException The allowedFactoryClassNames whitelist test can be (but generally should not be) circumvented by explicitly providing ReferenceUtils.ALL_FACTORY_CLASS_NAMES as the argument allowedFactoryClassNames. allowedFactoryClassNames must not be null. (A NullPointerException will be provoked if it is.)- Throws:
NamingException
-
referenceToObject
public static Object referenceToObject(Reference ref, Name name, Context nameCtx, Hashtable env, Set allowedFactoryClassNames, PropertiesConfig pcfg) throws NamingException The allowedFactoryClassNames whitelist test can be (but generally should not be) circumvented by explicitly providing ReferenceUtils.ALL_FACTORY_CLASS_NAMES as the argument allowedFactoryClassNames. allowedFactoryClassNames must not be null. (A NullPointerException will be provoked if it is.)- Throws:
NamingException
-
assertAcceptableName
public static void assertAcceptableName(Object jndiName, PropertiesConfig pcfg) throws NamingException - Throws:
NamingException
-
supportReferenceRemoteFactoryClassLocation
-
acceptDeserializedInitialContextEnvironment
-
appendToReference
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
-