Class RegistrationKey


  • public class RegistrationKey
    extends Object
    A key used to register Cargo object implementation classes (configurations, deployables, deployers, etc) against containers.
    • Constructor Detail

      • RegistrationKey

        public RegistrationKey​(ContainerIdentity containerIdentity,
                               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".
    • Method Detail

      • equals

        public boolean equals​(Object registrationKey)
        Differentiate two keys. Needed as we're using this class as an index in a Map.
        Overrides:
        equals in class 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 Object
      • toString

        public String toString​(String implementationConceptName)
        Parameters:
        implementationConceptName - implementation concept name.
        Returns:
        string with container identity, concept name and hint.