Interface Namer<T>

Type Parameters:
T - is the type of the object acting as the name
All Known Implementing Classes:
FriggaReflectiveNamer

public interface Namer<T>
A "Namer" takes some type "T" (e.g. a server group) and allows you to either

a) derive a "Moniker" object from a "T" object b) set a "Moniker" object on a "T" object

For example, if T is an ASG, and you apply the Moniker(app=app, sequence=3), the ASG Namer would set ASG.name = app-v003

  • Method Details

    • applyMoniker

      void applyMoniker(T obj, Moniker moniker)
    • applyMoniker

      default void applyMoniker(T obj, Moniker moniker, OperationDescription description)
      Sets a moniker on the given object with additional context provided by the description. This default implementation ignores the provided description and simply delegates to the applyMoniker(Object, Moniker) method.
      Parameters:
      obj - the object to which the moniker will be applied
      moniker - the moniker to apply
      description - a description that provides additional context for the operation
    • deriveMoniker

      Moniker deriveMoniker(T obj)