Class GrpcAdviceDiscoverer
java.lang.Object
org.springframework.grpc.server.advice.GrpcAdviceDiscoverer
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class GrpcAdviceDiscoverer
extends Object
implements org.springframework.beans.factory.InitializingBean
Discovers
@GrpcAdvice beans and
@GrpcExceptionHandler methods.- Author:
- Oleksandr Shevchenko
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.springframework.util.ReflectionUtils.MethodFilterA filter for selecting@GrpcExceptionHandlermethods. -
Constructor Summary
ConstructorsConstructorDescriptionGrpcAdviceDiscoverer(org.springframework.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidReturn the discovered@GrpcAdvicebeans.Return the discovered@GrpcExceptionHandlermethods.
-
Field Details
-
EXCEPTION_HANDLER_METHODS
public static final org.springframework.util.ReflectionUtils.MethodFilter EXCEPTION_HANDLER_METHODSA filter for selecting@GrpcExceptionHandlermethods.
-
-
Constructor Details
-
GrpcAdviceDiscoverer
public GrpcAdviceDiscoverer(org.springframework.context.ApplicationContext applicationContext)
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
getAnnotatedBeans
Return the discovered@GrpcAdvicebeans.- Returns:
- the annotated beans
-
getAnnotatedMethods
Return the discovered@GrpcExceptionHandlermethods.- Returns:
- the annotated methods
-