Package org.jboss.as.naming.deployment
Class JndiName
java.lang.Object
org.jboss.as.naming.deployment.JndiName
- All Implemented Interfaces:
Serializable,Comparable<JndiName>
Utility object used to easily manged the construction and management of JNDI names.
- Author:
- John E. Bailey
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCreate a new JNDI name by appending a new local entry name to this name.intbooleanGet the absolute JNDI name as a string.Get the local JNDI entry name.Get the parent JNDI name.inthashCode()static JndiNameCreate a new instance of the JndiName by breaking the provided string format into a JndiName parts.toString()
-
Method Details
-
getLocalName
Get the local JNDI entry name. Eg. java:comp/enc => enc- Returns:
- The local JNDI entry name
-
getParent
Get the parent JNDI name. Eg. java:comp/enc => java:comp- Returns:
- The parent JNDI name
-
getAbsoluteName
Get the absolute JNDI name as a string.- Returns:
- The absolute JNDI name as a string
-
append
Create a new JNDI name by appending a new local entry name to this name.- Parameters:
local- The new local part to append- Returns:
- A new JNDI name
-
of
Create a new instance of the JndiName by breaking the provided string format into a JndiName parts.- Parameters:
name- The string representation of a JNDI name.- Returns:
- The JndiName representation
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<JndiName>
-