Package dev.agenor.core
Record Class AgenorConfiguration.AgentsConfig
java.lang.Object
java.lang.Record
dev.agenor.core.AgenorConfiguration.AgentsConfig
- Record Components:
autoDiscovery- whether to scan for@Agentclasses at startupbasePackage- primary root package to scan; merged intoscanPackagesscanPaths- legacy alias for additional packages (kept for YAML compatibility); merged intoscanPackagesat construction timescanPackages- merged, deduplicated list of all packages to scan (computed frombasePackage,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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theautoDiscoveryrecord component.Returns the value of thebasePackagerecord component.defaults()final booleanIndicates whether some other object is "equal to" this one.Get all scan packages (merged from basePackage, scanPaths, scanPackages)final inthashCode()Returns a hash code value for this object.Returns the value of thepropertiesrecord component.Returns the value of thescanPackagesrecord component.String[]Returns the value of thescanPathsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentsConfig
public AgentsConfig(boolean autoDiscovery, String basePackage, String[] scanPaths, List<String> scanPackages, Map<String, String> properties) Creates an instance of aAgentsConfigrecord class.- Parameters:
autoDiscovery- the value for theautoDiscoveryrecord componentbasePackage- the value for thebasePackagerecord componentscanPaths- the value for thescanPathsrecord componentscanPackages- the value for thescanPackagesrecord componentproperties- the value for thepropertiesrecord component
-
-
Method Details
-
defaults
-
getAllScanPackages
Get all scan packages (merged from basePackage, scanPaths, scanPackages) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
autoDiscovery
public boolean autoDiscovery()Returns the value of theautoDiscoveryrecord component.- Returns:
- the value of the
autoDiscoveryrecord component
-
basePackage
Returns the value of thebasePackagerecord component.- Returns:
- the value of the
basePackagerecord component
-
scanPaths
Returns the value of thescanPathsrecord component.- Returns:
- the value of the
scanPathsrecord component
-
scanPackages
Returns the value of thescanPackagesrecord component.- Returns:
- the value of the
scanPackagesrecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-