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.Builderfor an annotated gRPC service class.Implementations of this class are called by the
GrpcServiceBuilderwhen it builds aServiceDescriptorfrom an annotated class. Instances ofAnnotatedServiceConfigurerare discovered using theHelidonServiceLoader. This service loader supports ordering of configurers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(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 theGrpcannotationbuilder- the builder to modify
-
-