Package org.jboss.aop.joinpoint

Examples of org.jboss.aop.joinpoint.ConstructorCallByConstructor


      return returnType.get();
   }

   protected AdviceMethodProperties getAdviceMethodProperties(JoinPointBean joinPoint, AdviceSetup setup)
   {
      ConstructorCallByConstructor call = (ConstructorCallByConstructor) joinPoint;
      Constructor ctor = call.getConstructor();
      AdviceMethodProperties properties = new AdviceMethodProperties(
            joinPoint,
            setup.getAspectClass(),
            setup.getAdviceName(),
            JOINPOINT_TYPE,
            INVOCATION_TYPE,
            ctor.getDeclaringClass(),
            ctor.getGenericParameterTypes(),
            ctor.getParameterTypes(),
            ctor.getGenericExceptionTypes(),
            call.getCalledClass(), false,
            call.getCallingClass(),
            true);
      return properties;
   }
View Full Code Here


      new JoinPointPOJO(11, false);
     
      assertFullInterception(ConstructorCallByConstructor.class, "before6", "after4",
            "finally5", false);
     
      ConstructorCallByConstructor joinPoint = (ConstructorCallByConstructor)
         JoinPointAspect.beforeJoinPoint;
      Class[] parameters = joinPoint.getConstructor().getParameterTypes();
      assertEquals(1, parameters.length);
      assertSame(boolean.class, parameters[0]);
      assertSame(JoinPointPOJO.class, joinPoint.getConstructor().getDeclaringClass());
      assertSame(JoinPointPOJO.class, joinPoint.getCalledClass());
      assertSame(JoinPointPOJO.class, joinPoint.getCallingClass());
      assertSame(JoinPointPOJO.class, joinPoint.getCallingConstructor().getDeclaringClass());
      Class[] callerParameters = joinPoint.getCallingConstructor().getParameterTypes();
      assertEquals(2, callerParameters.length);
      assertSame(int.class, callerParameters[0]);
      assertSame(boolean.class, callerParameters[1]);
   }
View Full Code Here

      assertTrue(exceptionThrown);
     
      assertFullInterception(ConstructorCallByConstructor.class, "before6",
            "throwing6", "finally5", exceptionThrown);
     
      ConstructorCallByConstructor joinPoint = (ConstructorCallByConstructor)
      JoinPointAspect.beforeJoinPoint;
      Class[] parameters = joinPoint.getConstructor().getParameterTypes();
      assertEquals(1, parameters.length);
      assertSame(boolean.class, parameters[0]);
      assertSame(JoinPointPOJO.class, joinPoint.getConstructor().getDeclaringClass());
      assertSame(JoinPointPOJO.class, joinPoint.getCalledClass());
      assertSame(JoinPointPOJO.class, joinPoint.getCallingClass());
      assertSame(JoinPointPOJO.class, joinPoint.getCallingConstructor().getDeclaringClass());
      Class[] callerParameters = joinPoint.getCallingConstructor().getParameterTypes();
      assertEquals(2, callerParameters.length);
      assertSame(int.class, callerParameters[0]);
      assertSame(boolean.class, callerParameters[1]);
   }
View Full Code Here

      return returnType.get();
   }

   protected AdviceMethodProperties getAdviceMethodProperties(JoinPointBean joinPoint, AdviceSetup setup)
   {
      ConstructorCallByConstructor call = (ConstructorCallByConstructor) joinPoint;
      Constructor<?> ctor = call.getConstructor();
      AdviceMethodProperties properties = new AdviceMethodProperties(
            joinPoint,
            setup.getAspectClass(),
            setup.getAdviceName(),
            JOINPOINT_TYPE,
            INVOCATION_TYPE,
            ctor.getDeclaringClass(),
            ctor.getGenericParameterTypes(),
            ctor.getParameterTypes(),
            ctor.getGenericExceptionTypes(),
            call.getCalledClass(), false,
            call.getCallingClass(),
            true);
      return properties;
   }
View Full Code Here

/* 119 */     return (Class)this.returnType.get();
/*     */   }
/*     */
/*     */   protected AdviceMethodProperties getAdviceMethodProperties(JoinPointBean joinPoint, JoinPointGenerator.AdviceSetup setup)
/*     */   {
/* 124 */     ConstructorCallByConstructor call = (ConstructorCallByConstructor)joinPoint;
/* 125 */     Constructor ctor = call.getConstructor();
/* 126 */     AdviceMethodProperties properties = new AdviceMethodProperties(joinPoint, setup.getAspectClass(), setup.getAdviceName(), JOINPOINT_TYPE, INVOCATION_TYPE, ctor.getDeclaringClass(), ctor.getGenericParameterTypes(), ctor.getParameterTypes(), ctor.getGenericExceptionTypes(), call.getCalledClass(), false, call.getCallingClass(), true);
/*     */
/* 139 */     return properties;
/*     */   }
View Full Code Here

TOP

Related Classes of org.jboss.aop.joinpoint.ConstructorCallByConstructor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.