|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.inject.intercept.ProxyFactoryBuilder
public class ProxyFactoryBuilder
Creates a ProxyFactory
.
Constructor Summary | |
---|---|
ProxyFactoryBuilder()
|
Method Summary | |
---|---|
ProxyFactory |
create()
Creates a ProxyFactory . |
ProxyFactoryBuilder |
intercept(Query<? super java.lang.Class<?>> classQuery,
Query<? super java.lang.reflect.Method> methodQuery,
MethodInterceptor... interceptors)
Applies the given method interceptor to the methods matched by the class and method queries. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyFactoryBuilder()
Method Detail |
---|
public ProxyFactoryBuilder intercept(Query<? super java.lang.Class<?>> classQuery, Query<? super java.lang.reflect.Method> methodQuery, MethodInterceptor... interceptors)
classQuery
- matches classes the interceptor should apply to. For
example: only(Runnable.class)
.methodQuery
- matches methods the interceptor should apply to. For
example: annotatedWith(Transactional.class)
.interceptors
- to applypublic ProxyFactory create()
ProxyFactory
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |