Package com.netflix.spinnaker.moniker
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 Summary
Modifier and TypeMethodDescriptionvoidapplyMoniker(T obj, Moniker moniker) default voidapplyMoniker(T obj, Moniker moniker, OperationDescription description) Sets a moniker on the given object with additional context provided by the description.deriveMoniker(T obj)
-
Method Details
-
applyMoniker
-
applyMoniker
Sets a moniker on the given object with additional context provided by the description. This default implementation ignores the provideddescriptionand simply delegates to theapplyMoniker(Object, Moniker)method.- Parameters:
obj- the object to which the moniker will be appliedmoniker- the moniker to applydescription- a description that provides additional context for the operation
-
deriveMoniker
-