Class WildFlyGrpcHandler

java.lang.Object
io.a2a.grpc.A2AServiceGrpc.A2AServiceImplBase
io.a2a.transport.grpc.handler.GrpcHandler
org.wildfly.extras.a2a.server.apps.grpc.WildFlyGrpcHandler
All Implemented Interfaces:
io.a2a.grpc.A2AServiceGrpc.AsyncService, io.grpc.BindableService

public class WildFlyGrpcHandler extends io.a2a.transport.grpc.handler.GrpcHandler
WildFly gRPC Handler that uses static cache for CDI beans. The WildFly gRPC subsystem instantiates this class directly using reflection and the default constructor, bypassing CDI completely. Since CDI is not available on gRPC threads, we use static cache populated during application startup when CDI is available.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected io.a2a.spec.AgentCard
     
    protected io.a2a.transport.grpc.handler.CallContextFactory
     
    protected io.a2a.server.requesthandlers.RequestHandler
     

    Methods inherited from class io.a2a.transport.grpc.handler.GrpcHandler

    cancelTask, createTaskPushNotificationConfig, deleteTaskPushNotificationConfig, getAgentCard, getTask, getTaskPushNotificationConfig, listTaskPushNotificationConfig, sendMessage, sendStreamingMessage, setStreamingSubscribedRunnable, taskSubscription

    Methods inherited from class io.a2a.grpc.A2AServiceGrpc.A2AServiceImplBase

    bindService

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WildFlyGrpcHandler

      public WildFlyGrpcHandler()
  • Method Details

    • getRequestHandler

      protected io.a2a.server.requesthandlers.RequestHandler getRequestHandler()
      Specified by:
      getRequestHandler in class io.a2a.transport.grpc.handler.GrpcHandler
    • getAgentCard

      protected io.a2a.spec.AgentCard getAgentCard()
      Specified by:
      getAgentCard in class io.a2a.transport.grpc.handler.GrpcHandler
    • getCallContextFactory

      protected io.a2a.transport.grpc.handler.CallContextFactory getCallContextFactory()
      Specified by:
      getCallContextFactory in class io.a2a.transport.grpc.handler.GrpcHandler