File tree Expand file tree Collapse file tree 5 files changed +24
-1
lines changed
java/io/a2a/server/apps/jakarta
sdk-server-common/src/main
java/io/a2a/server/requesthandlers Expand file tree Collapse file tree 5 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 4848 <dependency >
4949 <groupId >jakarta.enterprise</groupId >
5050 <artifactId >jakarta.enterprise.cdi-api</artifactId >
51+ <scope >provided</scope >
5152 </dependency >
5253 <dependency >
5354 <groupId >jakarta.inject</groupId >
5455 <artifactId >jakarta.inject-api</artifactId >
56+ <scope >provided</scope >
5557 </dependency >
5658 <dependency >
5759 <groupId >jakarta.json</groupId >
Original file line number Diff line number Diff line change @@ -206,7 +206,10 @@ static void setStreamingIsSubscribedRunnable(Runnable streamingIsSubscribedRunna
206206 }
207207
208208 @ Provider
209- public class JsonParseExceptionMapper implements ExceptionMapper <JsonParseException > {
209+ public static class JsonParseExceptionMapper implements ExceptionMapper <JsonParseException > {
210+
211+ public JsonParseExceptionMapper () {
212+ }
210213
211214 @ Override
212215 public Response toResponse (JsonParseException exception ) {
@@ -219,6 +222,9 @@ public Response toResponse(JsonParseException exception) {
219222 @ Provider
220223 public static class JsonMappingExceptionMapper implements ExceptionMapper <JsonMappingException > {
221224
225+ public JsonMappingExceptionMapper (){
226+ }
227+
222228 @ Override
223229 public Response toResponse (JsonMappingException exception ) {
224230 if (exception .getCause () instanceof JsonParseException ) {
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <beans xmlns =" https://jakarta.ee/xml/ns/jakartaee"
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : schemaLocation =" https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/beans_4_0.xsd"
5+ bean-discovery-mode =" all" >
6+ </beans >
Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ public class JSONRPCHandler {
3838 private AgentCard agentCard ;
3939 private RequestHandler requestHandler ;
4040
41+ public JSONRPCHandler () {
42+ }
43+
4144 @ Inject
4245 public JSONRPCHandler (@ PublicAgentCard AgentCard agentCard , RequestHandler requestHandler ) {
4346 this .agentCard = agentCard ;
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <beans xmlns =" https://jakarta.ee/xml/ns/jakartaee"
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : schemaLocation =" https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/beans_4_0.xsd"
5+ bean-discovery-mode =" all" >
6+ </beans >
You can’t perform that action at this time.
0 commit comments