public final class NamingUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Context |
emptyContext(Hashtable<String,Object> environment) |
static NamingException |
namingException(String message,
Throwable cause)
Create a naming exception with a root cause.
|
static Name |
parentOf(Name name) |
static void |
safeClose(Context context) |
static CompositeName |
toCompositeName(Name name) |
static CompositeName |
toDecomposedCompositeName(Name name)
Create a CompositeName where each name segment is equal to the name segment in the source name.
|
public static CompositeName toCompositeName(Name name) throws InvalidNameException
InvalidNameExceptionpublic static CompositeName toDecomposedCompositeName(Name name) throws InvalidNameException
name - the source nameCompositeName where each name segment is equal to the name segment in the source nameInvalidNameException - if an error occurs while converting the source name to a CompositeNamepublic static void safeClose(Context context)
public static NamingException namingException(String message, Throwable cause)
message - the messagecause - the cause, or null for noneCopyright © 2018 JBoss by Red Hat. All rights reserved.