Class WildFlyGrpcHandler

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

public class WildFlyGrpcHandler extends org.a2aproject.sdk.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 org.a2aproject.sdk.spec.AgentCard
     
    protected org.a2aproject.sdk.transport.grpc.handler.CallContextFactory
     
    protected Executor
     
    protected org.a2aproject.sdk.spec.AgentCard
     
    protected org.a2aproject.sdk.server.requesthandlers.RequestHandler
     

    Methods inherited from class org.a2aproject.sdk.transport.grpc.handler.GrpcHandler

    cancelTask, createTaskPushNotificationConfig, deleteTaskPushNotificationConfig, getCurrentMetadata, getCurrentMethodName, getCurrentPeerInfo, getDeploymentClassLoader, getExtendedAgentCard, getTask, getTaskPushNotificationConfig, listTaskPushNotificationConfigs, listTasks, sendMessage, sendStreamingMessage, setStreamingSubscribedRunnable, subscribeToTask

    Methods inherited from class org.a2aproject.sdk.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 org.a2aproject.sdk.server.requesthandlers.RequestHandler getRequestHandler()
      Specified by:
      getRequestHandler in class org.a2aproject.sdk.transport.grpc.handler.GrpcHandler
    • getAgentCard

      protected org.a2aproject.sdk.spec.AgentCard getAgentCard()
      Specified by:
      getAgentCard in class org.a2aproject.sdk.transport.grpc.handler.GrpcHandler
    • getExtendedAgentCard

      protected org.a2aproject.sdk.spec.AgentCard getExtendedAgentCard()
      Specified by:
      getExtendedAgentCard in class org.a2aproject.sdk.transport.grpc.handler.GrpcHandler
    • getCallContextFactory

      protected org.a2aproject.sdk.transport.grpc.handler.CallContextFactory getCallContextFactory()
      Specified by:
      getCallContextFactory in class org.a2aproject.sdk.transport.grpc.handler.GrpcHandler
    • getExecutor

      protected Executor getExecutor()
      Specified by:
      getExecutor in class org.a2aproject.sdk.transport.grpc.handler.GrpcHandler