Class AgentBundleLocator

java.lang.Object
com.agentforge4j.config.loader.agent.AgentBundleLocator

public final class AgentBundleLocator extends Object
Resolves shipped agent bundle resources from the classpath.

Like WorkflowBundleLocator, resources are resolved through ClassLoader.getResource(String) on this class's own loader so a catalog shipped as a separate module/jar is discoverable. The shipped-agents root contains a hyphen and is therefore not JPMS-encapsulated. When no catalog is present the shipped agent index is absent and shippedAgentIds() is empty.

  • Method Details

    • shippedAgentIds

      public static List<String> shippedAgentIds()
      Returns agent ids listed in the shipped agent index.
      Returns:
      immutable list of shipped agent ids, empty when no catalog is present