Package org.jboss.ejb.client
Class EJBModuleIdentifier
java.lang.Object
org.jboss.ejb.client.EJBModuleIdentifier
- All Implemented Interfaces:
Serializable
An identifier for an Enterprise Bean module located within a container.
Enterprise Bean module identifiers are suitable for use as hash keys.
- Author:
- David M. Lloyd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEJBModuleIdentifier(String moduleName) Construct a new instance.EJBModuleIdentifier(String appName, String moduleName) Construct a new instance.EJBModuleIdentifier(String appName, String moduleName, String distinctName) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine if this Enterprise Bean identifier is equal to the given object.booleanequals(EJBModuleIdentifier other) Determine if this Enterprise Bean identifier is equal to the given object.Get the application name, which may be empty.Get the distinct name, which may be empty.Get the module name.inthashCode()Get the hash code of this identifier.toString()Get the Enterprise Beans identifier as a human-readable string.
-
Constructor Details
-
EJBModuleIdentifier
Construct a new instance.- Parameters:
appName- the application name (must not benull, but may be empty)moduleName- the module name (must not benullor empty)distinctName- the distinct name (must not benull, but may be empty)
-
EJBModuleIdentifier
Construct a new instance.- Parameters:
appName- the application name (must not benull, but may be empty)moduleName- the module name (must not benullor empty)
-
EJBModuleIdentifier
Construct a new instance.- Parameters:
moduleName- the module name (must not benullor empty)
-
-
Method Details
-
getAppName
Get the application name, which may be empty.- Returns:
- the application name (not
null)
-
getModuleName
Get the module name.- Returns:
- the module name (not
null)
-
getDistinctName
Get the distinct name, which may be empty.- Returns:
- the distinct name (not
null)
-
equals
Determine if this Enterprise Bean identifier is equal to the given object. -
equals
Determine if this Enterprise Bean identifier is equal to the given object.- Parameters:
other- the object to test- Returns:
trueif the object is equal to this one,falseotherwise
-
hashCode
public int hashCode()Get the hash code of this identifier. -
toString
Get the Enterprise Beans identifier as a human-readable string.
-