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 Details

    • EXCEPTION_HANDLER_METHODS

      public static final org.springframework.util.ReflectionUtils.MethodFilter EXCEPTION_HANDLER_METHODS
      A filter for selecting @GrpcExceptionHandler methods.
  • Constructor Details

    • GrpcAdviceDiscoverer

      public GrpcAdviceDiscoverer(org.springframework.context.ApplicationContext applicationContext)
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • getAnnotatedBeans

      public Map<String,Object> getAnnotatedBeans()
      Return the discovered @GrpcAdvice beans.
      Returns:
      the annotated beans
    • getAnnotatedMethods

      public Set<Method> getAnnotatedMethods()
      Return the discovered @GrpcExceptionHandler methods.
      Returns:
      the annotated methods