Package org.wildfly.naming.client.util
Class NamingUtils
java.lang.Object
org.wildfly.naming.client.util.NamingUtils
Naming-related utilities.
- Author:
- John Bailey, David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContextemptyContext(Hashtable<String, Object> environment) static NamingExceptionnamingException(String message, Throwable cause) Create a naming exception with a root cause.static Namestatic voidstatic CompositeNametoCompositeName(Name name) static CompositeNameCreate a CompositeName where each name segment is equal to the name segment in the source name.
-
Method Details
-
parentOf
-
toCompositeName
- Throws:
InvalidNameException
-
toDecomposedCompositeName
Create a CompositeName where each name segment is equal to the name segment in the source name.- Parameters:
name- the source name- Returns:
- a
CompositeNamewhere each name segment is equal to the name segment in the source name - Throws:
InvalidNameException- if an error occurs while converting the source name to aCompositeName
-
emptyContext
-
safeClose
-
namingException
Create a naming exception with a root cause.- Parameters:
message- the messagecause- the cause, ornullfor none- Returns:
- the naming exception
-