Class StandaloneServiceDiscoveryProducer

java.lang.Object
ai.pipestream.dynamic.grpc.client.discovery.StandaloneServiceDiscoveryProducer

@ApplicationScoped public class StandaloneServiceDiscoveryProducer extends Object
Producer for ServiceDiscovery when running the dynamic-grpc module standalone. This producer provides a default ServiceDiscovery implementation when no other implementation is available (e.g., when running without the engine module). The @DefaultBean annotation ensures this is only used when no other ServiceDiscovery bean is available, allowing the engine to provide its own implementation.
  • Constructor Details

    • StandaloneServiceDiscoveryProducer

      public StandaloneServiceDiscoveryProducer()
      Default constructor for CDI.
  • Method Details

    • produceServiceDiscovery

      @Produces @ApplicationScoped public ServiceDiscovery produceServiceDiscovery()
      Produces a default ServiceDiscovery implementation for standalone usage. When running with the engine module, the engine's ServiceDiscoveryProducer will take precedence over this default.
      Returns:
      ServiceDiscovery implementation