Class GuiceAopConfig

java.lang.Object
ru.vyarus.dropwizard.guice.debug.report.guice.GuiceAopConfig

public class GuiceAopConfig extends Object
Guice AOP report configuration. Used to reduce report to only interesting parts.
Since:
23.08.2019
  • Constructor Details

    • GuiceAopConfig

      public GuiceAopConfig()
  • Method Details

    • hideDeclarationsBlock

      public GuiceAopConfig hideDeclarationsBlock()
      Hide available interceptors block.
      Returns:
      config instance for chained calls
    • types

      public GuiceAopConfig types(com.google.inject.matcher.Matcher<? super Class<?>> matcher)
      Filter bindings by type.
      Parameters:
      matcher - type matcher
      Returns:
      config instance for chained calls
    • methods

      public GuiceAopConfig methods(com.google.inject.matcher.Matcher<? super Method> matcher)
      Filter methods.
      Parameters:
      matcher - method matcher
      Returns:
      config instance for chained calls
    • interceptors

      @SafeVarargs public final GuiceAopConfig interceptors(Class<? extends org.aopalliance.intercept.MethodInterceptor>... interceptors)
      Filter by interceptor (show only methods affected with this interceptor).
      Parameters:
      interceptors - interceptors to show
      Returns:
      config instance for chained calls
    • isHideDeclarationsBlock

      public boolean isHideDeclarationsBlock()
      Returns:
      true if declaration block must not be shown
    • getTypeMatcher

      public com.google.inject.matcher.Matcher<? super Class<?>> getTypeMatcher()
      Returns:
      configured type matcher or null
    • getMethodMatcher

      public com.google.inject.matcher.Matcher<? super Method> getMethodMatcher()
      Returns:
      configured method matcher or null
    • getShowOnly

      public Set<Class<? extends org.aopalliance.intercept.MethodInterceptor>> getShowOnly()
      Returns:
      list of interceptor classes to show or empty list