Package org.jboss.ejb.client
Class EJBIdentifier
java.lang.Object
org.jboss.ejb.client.EJBIdentifier
- All Implemented Interfaces:
Serializable
An identifier for an Enterprise Bean located within a container. This identifier only names the Enterprise Beans; it does not specify
a view, which must be done using the
EJBLocator family of types.
Enterprise Bean identifiers are suitable for use as hash keys.
- Author:
- David M. Lloyd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEJBIdentifier(String appName, String moduleName, String beanName, String distinctName) Construct a new instance.EJBIdentifier(EJBModuleIdentifier moduleIdentifier, String beanName) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine if this Enterprise Bean identifier is equal to the given object.booleanequals(EJBIdentifier other) Determine if this Enterprise Bean identifier is equal to the given object.Get the application name, which may be empty.Get the bean name.Get the distinct name.Get the module identifier.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
-
EJBIdentifier
Construct a new instance.- Parameters:
appName- the application name (must not benull)moduleName- the module name (must not benullor empty)beanName- the bean name (must not benullor empty)distinctName- the distinct name (must not benull)
-
EJBIdentifier
Construct a new instance.- Parameters:
moduleIdentifier- the Enterprise Beans module identifier (must not benull)beanName- the bean 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)
-
getBeanName
Get the bean name.- Returns:
- the bean name (not
null)
-
getDistinctName
Get the distinct name.- Returns:
- the distinct name (not
null)
-
getModuleIdentifier
Get the module identifier.- Returns:
- the module identifier (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.
-