Record Class WorkspaceContext
java.lang.Object
java.lang.Record
network.ike.plugin.ws.reconcile.WorkspaceContext
- Record Components:
workspaceRoot- the workspace root directorymanifestPath- the path toworkspace.yamlgraph- the parsed workspace graphoptions- user-supplied flag valueslog- Maven logger for reconciler output
public record WorkspaceContext(File workspaceRoot, Path manifestPath, network.ike.workspace.WorkspaceGraph graph, ReconcilerOptions options, org.apache.maven.api.plugin.Log log)
extends Record
Context handed to each
Reconciler for detect and
apply. Bundles the workspace's filesystem location, parsed
manifest graph, user-supplied flags, and a logger.-
Constructor Summary
ConstructorsConstructorDescriptionWorkspaceContext(File workspaceRoot, Path manifestPath, network.ike.workspace.WorkspaceGraph graph, ReconcilerOptions options, org.apache.maven.api.plugin.Log log) Creates an instance of aWorkspaceContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.network.ike.workspace.WorkspaceGraphgraph()Returns the value of thegraphrecord component.final inthashCode()Returns a hash code value for this object.org.apache.maven.api.plugin.Loglog()Returns the value of thelogrecord component.Returns the value of themanifestPathrecord component.options()Returns the value of theoptionsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkspaceRootrecord component.
-
Constructor Details
-
WorkspaceContext
public WorkspaceContext(File workspaceRoot, Path manifestPath, network.ike.workspace.WorkspaceGraph graph, ReconcilerOptions options, org.apache.maven.api.plugin.Log log) Creates an instance of aWorkspaceContextrecord class.- Parameters:
workspaceRoot- the value for theworkspaceRootrecord componentmanifestPath- the value for themanifestPathrecord componentgraph- the value for thegraphrecord componentoptions- the value for theoptionsrecord componentlog- the value for thelogrecord component
-
-
Method Details
-
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). -
workspaceRoot
Returns the value of theworkspaceRootrecord component.- Returns:
- the value of the
workspaceRootrecord component
-
manifestPath
Returns the value of themanifestPathrecord component.- Returns:
- the value of the
manifestPathrecord component
-
graph
-
options
-
log
-