Record Class AgenorConfiguration.AgentsConfig

java.lang.Object
java.lang.Record
dev.agenor.core.AgenorConfiguration.AgentsConfig
Record Components:
autoDiscovery - whether to scan for @Agent classes at startup
basePackage - primary root package to scan; merged into scanPackages
scanPaths - legacy alias for additional packages (kept for YAML compatibility); merged into scanPackages at construction time
scanPackages - merged, deduplicated list of all packages to scan (computed from basePackage, scanPaths, and explicit entries)
properties - arbitrary key/value pairs forwarded to agent factories
Enclosing class:
AgenorConfiguration

public static record AgenorConfiguration.AgentsConfig(boolean autoDiscovery, String basePackage, String[] scanPaths, List<String> scanPackages, Map<String,String> properties) extends Record
Agent discovery and scanning configuration.
  • Constructor Details

    • AgentsConfig

      public AgentsConfig(boolean autoDiscovery, String basePackage, String[] scanPaths, List<String> scanPackages, Map<String,String> properties)
      Creates an instance of a AgentsConfig record class.
      Parameters:
      autoDiscovery - the value for the autoDiscovery record component
      basePackage - the value for the basePackage record component
      scanPaths - the value for the scanPaths record component
      scanPackages - the value for the scanPackages record component
      properties - the value for the properties record component
  • Method Details

    • defaults

      public static AgenorConfiguration.AgentsConfig defaults()
    • getAllScanPackages

      public List<String> getAllScanPackages()
      Get all scan packages (merged from basePackage, scanPaths, scanPackages)
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • autoDiscovery

      public boolean autoDiscovery()
      Returns the value of the autoDiscovery record component.
      Returns:
      the value of the autoDiscovery record component
    • basePackage

      public String basePackage()
      Returns the value of the basePackage record component.
      Returns:
      the value of the basePackage record component
    • scanPaths

      public String[] scanPaths()
      Returns the value of the scanPaths record component.
      Returns:
      the value of the scanPaths record component
    • scanPackages

      public List<String> scanPackages()
      Returns the value of the scanPackages record component.
      Returns:
      the value of the scanPackages record component
    • properties

      public Map<String,String> properties()
      Returns the value of the properties record component.
      Returns:
      the value of the properties record component