Interface ConstructionProxy<T>

All Known Implementing Classes:
DefaultConstructionProxyFactory.FastClassProxy, DefaultConstructionProxyFactory.ReflectiveProxy, ProxyFactory.ProxyConstructor

interface ConstructionProxy<T>
Proxies calls to a Constructor for a class T.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the injected constructor.
    Returns the injection point for this constructor.
    com.google.common.collect.ImmutableMap<Method,List<org.aopalliance.intercept.MethodInterceptor>>
    Returns the interceptors applied to each method, in order of invocation.
    newInstance(Object... arguments)
    Constructs an instance of T for the given arguments.
  • Method Details

    • newInstance

      T newInstance(Object... arguments) throws InvocationTargetException
      Constructs an instance of T for the given arguments.
      Throws:
      InvocationTargetException
    • getInjectionPoint

      InjectionPoint getInjectionPoint()
      Returns the injection point for this constructor.
    • getConstructor

      Constructor<T> getConstructor()
      Returns the injected constructor. If the injected constructor is synthetic (such as generated code for method interception), the natural constructor is returned.
    • getMethodInterceptors

      com.google.common.collect.ImmutableMap<Method,List<org.aopalliance.intercept.MethodInterceptor>> getMethodInterceptors()
      Returns the interceptors applied to each method, in order of invocation.