Record Class ReconcilerOptions
java.lang.Object
java.lang.Record
network.ike.plugin.ws.reconcile.ReconcilerOptions
- Record Components:
rawFlags- map of flag-name → string value (already extracted from Maven system properties by the calling Mojo)
Flag bag passed through
WorkspaceContext to reconcilers.
Backs the convergence-pattern flag scheme defined in
IKE-Network/ike-issues#393:
- Default (no flag): reconcile to latest.
- Opt out:
-D<optOutFlag>=false— skip this reconciler entirely. - Pin:
-D<pinFlag>=<value>— force a specific value rather than the latest discovered automatically.
-
Constructor Summary
ConstructorsConstructorDescriptionReconcilerOptions(Map<String, String> rawFlags) Creates an instance of aReconcilerOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ReconcilerOptionsempty()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisOptedOut(String flag) rawFlags()Returns the value of therawFlagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReconcilerOptions
-
-
Method Details
-
isOptedOut
- Parameters:
flag- flag name (without-Dprefix)- Returns:
- true if the flag is present with value
"false"
-
pin
-
empty
- Returns:
- an options bag with no flags set
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
rawFlags
-