Class GuiceAopConfig
- java.lang.Object
-
- ru.vyarus.dropwizard.guice.debug.report.guice.GuiceAopConfig
-
public class GuiceAopConfig extends java.lang.Object
Guice AOP report configuration. Used to reduce report to only interesting parts.- Since:
- 23.08.2019
-
-
Constructor Summary
Constructors Constructor Description GuiceAopConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.inject.matcher.Matcher<? super java.lang.reflect.Method>
getMethodMatcher()
java.util.Set<java.lang.Class<? extends org.aopalliance.intercept.MethodInterceptor>>
getShowOnly()
com.google.inject.matcher.Matcher<? super java.lang.Class<?>>
getTypeMatcher()
GuiceAopConfig
hideDeclarationsBlock()
Hide available interceptors block.GuiceAopConfig
interceptors(java.lang.Class<? extends org.aopalliance.intercept.MethodInterceptor>... interceptors)
Filter by interceptor (show only methods affected with this interceptor).boolean
isHideDeclarationsBlock()
GuiceAopConfig
methods(com.google.inject.matcher.Matcher<? super java.lang.reflect.Method> matcher)
Filter methods.GuiceAopConfig
types(com.google.inject.matcher.Matcher<? super java.lang.Class<?>> matcher)
Filter bindings by type.
-
-
-
Method Detail
-
hideDeclarationsBlock
public GuiceAopConfig hideDeclarationsBlock()
Hide available interceptors block.- Returns:
- config instance for chained calls
-
types
public GuiceAopConfig types(com.google.inject.matcher.Matcher<? super java.lang.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 java.lang.reflect.Method> matcher)
Filter methods.- Parameters:
matcher
- method matcher- Returns:
- config instance for chained calls
-
interceptors
@SafeVarargs public final GuiceAopConfig interceptors(java.lang.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 java.lang.Class<?>> getTypeMatcher()
- Returns:
- configured type matcher or null
-
getMethodMatcher
public com.google.inject.matcher.Matcher<? super java.lang.reflect.Method> getMethodMatcher()
- Returns:
- configured method matcher or null
-
getShowOnly
public java.util.Set<java.lang.Class<? extends org.aopalliance.intercept.MethodInterceptor>> getShowOnly()
- Returns:
- list of interceptor classes to show or empty list
-
-