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 -
Method Summary
Modifier and TypeMethodDescriptionprotected io.a2a.spec.AgentCardprotected io.a2a.transport.grpc.handler.CallContextFactoryprotected Executorprotected io.a2a.server.requesthandlers.RequestHandlerMethods inherited from class io.a2a.transport.grpc.handler.GrpcHandler
cancelTask, createTaskPushNotificationConfig, deleteTaskPushNotificationConfig, getAgentCard, getCurrentMetadata, getCurrentMethodName, getCurrentPeerInfo, getDeploymentClassLoader, getTask, getTaskPushNotificationConfig, listTaskPushNotificationConfig, sendMessage, sendStreamingMessage, setStreamingSubscribedRunnable, taskSubscriptionMethods inherited from class io.a2a.grpc.A2AServiceGrpc.A2AServiceImplBase
bindService
-
Constructor Details
-
WildFlyGrpcHandler
public WildFlyGrpcHandler()
-
-
Method Details
-
getRequestHandler
protected io.a2a.server.requesthandlers.RequestHandler getRequestHandler()- Specified by:
getRequestHandlerin classio.a2a.transport.grpc.handler.GrpcHandler
-
getAgentCard
protected io.a2a.spec.AgentCard getAgentCard()- Specified by:
getAgentCardin classio.a2a.transport.grpc.handler.GrpcHandler
-
getCallContextFactory
protected io.a2a.transport.grpc.handler.CallContextFactory getCallContextFactory()- Specified by:
getCallContextFactoryin classio.a2a.transport.grpc.handler.GrpcHandler
-
getExecutor
- Specified by:
getExecutorin classio.a2a.transport.grpc.handler.GrpcHandler
-