Module agentforge4j.config.loader
Record Class WorkflowBundleLoadContext
java.lang.Object
java.lang.Record
com.agentforge4j.config.loader.workflow.WorkflowBundleLoadContext
Immutable context for a single workflow bundle loading invocation.
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowBundleLoadContext(Optional<Path> workflowRoot) Creates an instance of aWorkflowBundleLoadContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic WorkflowBundleLoadContextfinal booleanIndicates whether some other object is "equal to" this one.static WorkflowBundleLoadContextfilesystem(Path root) final inthashCode()Returns a hash code value for this object.Returns the filesystem workflow root.final StringtoString()Returns a string representation of this record class.Returns the value of theworkflowRootrecord component.
-
Constructor Details
-
WorkflowBundleLoadContext
Creates an instance of aWorkflowBundleLoadContextrecord class.- Parameters:
workflowRoot- the value for theworkflowRootrecord component
-
-
Method Details
-
classpath
-
filesystem
-
requireWorkflowRoot
Returns the filesystem workflow root.- Returns:
- the workflow root
- Throws:
IllegalStateException- when this context has no workflow root (a classpath context)
-
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. -
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. -
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). -
workflowRoot
Returns the value of theworkflowRootrecord component.- Returns:
- the value of the
workflowRootrecord component
-