com.google.inject.intercept
Class ProxyFactoryBuilder

java.lang.Object
  extended by com.google.inject.intercept.ProxyFactoryBuilder

public class ProxyFactoryBuilder
extends java.lang.Object

Creates a ProxyFactory.

Author:
crazybob@google.com (Bob Lee)

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

ProxyFactoryBuilder

public ProxyFactoryBuilder()
Method Detail

intercept

public 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.

Parameters:
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 apply

create

public ProxyFactory create()
Creates a ProxyFactory.