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
InvalidNameException
public 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 CompositeName
public static void safeClose(Context context)
public static NamingException namingException(String message, Throwable cause)
message
- the messagecause
- the cause, or null
for noneCopyright © 2019 JBoss by Red Hat. All rights reserved.