org.codehaus.cargo.generic.internal.util
Class RegistrationKey
java.lang.Object
org.codehaus.cargo.generic.internal.util.RegistrationKey
public class RegistrationKey
- extends java.lang.Object
A key used to register Cargo object implementation classes (configurations, deployables,
deployers, etc) against containers.
- Version:
- $Id: HintKey.java 971 2006-03-27 13:37:28Z vmassol $
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
RegistrationKey
public RegistrationKey(ContainerIdentity containerIdentity,
java.lang.String hint)
- Parameters:
containerIdentity
- the container to which the Cargo object implementation class will be
associated with.hint
- A general purpose string. This is used to differentiate different Cargo object
implementation classes when they are registered against the same container.
For example for configurations we're using "standalone", "existing" or "runtime".
getContainerIdentity
public ContainerIdentity getContainerIdentity()
- Returns:
- the container identity
- See Also:
RegistrationKey(ContainerIdentity, String)
getHint
public java.lang.String getHint()
- Returns:
- the hint associated with the registration of the Cargo object implementation classes
- See Also:
RegistrationKey(ContainerIdentity, String)
equals
public boolean equals(java.lang.Object registrationKey)
- Differentiate two keys. Needed as we're using this class as an index in a Map.
- Overrides:
equals
in class java.lang.Object
- See Also:
Object.equals(java.lang.Object)
hashCode
public int hashCode()
- Allows quick verification to check is two keys are different. Needed as we're using
this class as an index in a Map.
- Overrides:
hashCode
in class java.lang.Object
- See Also:
Object.hashCode()
toString
public java.lang.String toString(java.lang.String implementationConceptName)
-
- See Also:
Object.toString()
Copyright © 2004-2009 Codehaus. All Rights Reserved.