Interface AnnotatedServiceConfigurer
-
- All Known Implementing Classes:
MetricsConfigurer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface AnnotatedServiceConfigurer
A class that may apply modifications to aServiceDescriptor.Builder
for an annotated gRPC service class.Implementations of this class are called by the
GrpcServiceBuilder
when it builds aServiceDescriptor
from an annotated class. Instances ofAnnotatedServiceConfigurer
are discovered using theHelidonServiceLoader
. This service loader supports ordering of configurers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(Class<?> serviceClass, Class<?> annotatedClass, ServiceDescriptor.Builder builder)
Apply modifications to aServiceDescriptor.Builder
.
-
-
-
Method Detail
-
accept
void accept(Class<?> serviceClass, Class<?> annotatedClass, ServiceDescriptor.Builder builder)
Apply modifications to aServiceDescriptor.Builder
.- Parameters:
serviceClass
- the annotated gRPC service classannotatedClass
- the class with theGrpc
annotationbuilder
- the builder to modify
-
-