Skip to content
This repository was archived by the owner on Dec 20, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package com.netflix.spinnaker.moniker;

import com.netflix.spinnaker.orchestration.OperationDescription;

/**
* A "Namer" takes some type "T" (e.g. a server group) and allows you to either
*
Expand All @@ -29,5 +31,18 @@
public interface Namer<T> {
void applyMoniker(T obj, Moniker moniker);

/**
* Sets a moniker on the given object with additional context provided by the description. This
* default implementation ignores the provided {@code description} and simply delegates to the
* {@link #applyMoniker(Object, Moniker)} method.
*
* @param obj the object to which the moniker will be applied
* @param moniker the moniker to apply
* @param description a description that provides additional context for the operation
*/
default void applyMoniker(T obj, Moniker moniker, OperationDescription description) {
applyMoniker(obj, moniker);
}

Moniker deriveMoniker(T obj);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.netflix.spinnaker.orchestration;

/** Marker interface for inputs to an AtomicOperation. */
public interface OperationDescription {}