Package io.micronaut.grpc.annotation
Annotation Interface GrpcRestJsonExposed
@Documented
@Retention(RUNTIME)
@Target(METHOD)
@Executable(processOnStartup=true)
public @interface GrpcRestJsonExposed
Annotation used to expose a gRPC method for handling JSON over REST requests.
This annotation is intended to facilitate integration between gRPC services
and JSON REST-based clients by allowing gRPC service methods to be invoked
via REST with JSON payloads.
Methods annotated with this annotation are processed at application startup by a registrar, where they are registered for subsequent invocation via JSON REST requests.
This annotation should be applied at the method level in gRPC service classes. It carries the
Target: - Can only be applied to methods.
Retention: - Runtime, ensuring availability through reflection at runtime.
Methods annotated with this annotation are processed at application startup by a registrar, where they are registered for subsequent invocation via JSON REST requests.
This annotation should be applied at the method level in gRPC service classes. It carries the
Executable
annotation with processOnStartup=true
,
ensuring that the relevant gRPC methods are processed during application startup.
Target: - Can only be applied to methods.
Retention: - Runtime, ensuring availability through reflection at runtime.