Class ConstructorInterceptorHandler


  • public class ConstructorInterceptorHandler
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object construct​(java.lang.reflect.Constructor<?> c, java.lang.Object[] args, boolean neutralCCL, java.util.List<org.aopalliance.intercept.ConstructorInterceptor> interceptors)
      Call this to construct objects taking constructor interceptors into consideration
      static java.lang.Object construct​(java.lang.reflect.Constructor<?> c, java.lang.Object[] args, boolean neutralCCL, java.util.List<org.aopalliance.intercept.ConstructorInterceptor> interceptors, ConstructorAction action)
      Call this to construct objects taking constructor interceptors into consideration
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConstructorInterceptorHandler

        public ConstructorInterceptorHandler()
    • Method Detail

      • construct

        public static java.lang.Object construct​(java.lang.reflect.Constructor<?> c,
                                                 java.lang.Object[] args,
                                                 boolean neutralCCL,
                                                 java.util.List<org.aopalliance.intercept.ConstructorInterceptor> interceptors,
                                                 ConstructorAction action)
                                          throws java.lang.Throwable
        Call this to construct objects taking constructor interceptors into consideration
        Parameters:
        c - The constructor to invoke
        args - The arguments to give to the constructor (intially)
        neutralCCL - Whether or not CCL should be neutral around calls to the constructor
        interceptors - The set of interceptors (may be null or empty)
        action - The action to perform to construct the object
        Returns:
        The constructed object (as massaged by the interceptors)
        Throws:
        java.lang.Throwable - On error
      • construct

        public static java.lang.Object construct​(java.lang.reflect.Constructor<?> c,
                                                 java.lang.Object[] args,
                                                 boolean neutralCCL,
                                                 java.util.List<org.aopalliance.intercept.ConstructorInterceptor> interceptors)
                                          throws java.lang.Throwable
        Call this to construct objects taking constructor interceptors into consideration
        Parameters:
        c - The constructor to invoke
        args - The arguments to give to the constructor (intially)
        neutralCCL - Whether or not CCL should be neutral around calls to the constructor
        interceptors - The set of interceptors (may be null or empty)
        Returns:
        The constructed object (as massaged by the interceptors)
        Throws:
        java.lang.Throwable - On error