Record Class WorkspaceContext

java.lang.Object
java.lang.Record
network.ike.plugin.ws.reconcile.WorkspaceContext
Record Components:
workspaceRoot - the workspace root directory
manifestPath - the path to workspace.yaml
graph - the parsed workspace graph
options - user-supplied flag values
log - 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 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 a WorkspaceContext record class.
      Parameters:
      workspaceRoot - the value for the workspaceRoot record component
      manifestPath - the value for the manifestPath record component
      graph - the value for the graph record component
      options - the value for the options record component
      log - the value for the log record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • workspaceRoot

      public File workspaceRoot()
      Returns the value of the workspaceRoot record component.
      Returns:
      the value of the workspaceRoot record component
    • manifestPath

      public Path manifestPath()
      Returns the value of the manifestPath record component.
      Returns:
      the value of the manifestPath record component
    • graph

      public network.ike.workspace.WorkspaceGraph graph()
      Returns the value of the graph record component.
      Returns:
      the value of the graph record component
    • options

      public ReconcilerOptions options()
      Returns the value of the options record component.
      Returns:
      the value of the options record component
    • log

      public org.apache.maven.api.plugin.Log log()
      Returns the value of the log record component.
      Returns:
      the value of the log record component