Package org.codehaus.aspectwerkz.joinpoint

Examples of org.codehaus.aspectwerkz.joinpoint.Rtti


        final Object targetInstance) {
        CatchClauseSignatureImpl signature = new CatchClauseSignatureImpl(
            exceptionClass,
            declaringClass,
            catchClauseSignature);
        Rtti rtti = new CatchClauseRttiImpl(signature, thisInstance, targetInstance);
        return new CatchClauseJoinPoint(m_targetClass, signature, rtti, joinPointMetaData, createAroundAdviceExecutor(
            adviceIndexes,
            JoinPointType.HANDLER), createBeforeAdviceExecutor(adviceIndexes), createAfterAdviceExecutor(adviceIndexes));
    }
View Full Code Here


      assertNull(jp.getTarget());

     

      Rtti rtti = jp.getRtti();

     

      assertNotNull(rtti);

     

      assertEquals(siRtti,

                   rtti.getClass());

     

      assertEquals(clazz,

                   rtti.getDeclaringType()

      );

     

      assertNull(rtti.getThis());

     

      assertNull(rtti.getTarget());

    }

  }
View Full Code Here

          }

         

          Rtti rtti = jp.getRtti();

         

          assertTrue("expected " + RTTI_CLASS[i].getName() + " found " + rtti.getClass().getName(),

                  RTTI_CLASS[i].isAssignableFrom(rtti.getClass()));

      }

  }
View Full Code Here

          } else {
              assertEquals(CALLER_INSTANCE, String.valueOf(jp.getCallee()));
              assertEquals(CALLER_INSTANCE, String.valueOf(jp.getTarget()));
          }
         
          Rtti rtti = jp.getRtti();
         
          assertTrue("expected " + RTTI_CLASS[i].getName() + " found " + rtti.getClass().getName(),
                  RTTI_CLASS[i].isAssignableFrom(rtti.getClass()));
      }
  }
View Full Code Here

     
      assertNull(jp.getCallee());
     
      assertNull(jp.getTarget());
     
      Rtti rtti = jp.getRtti();
     
      assertNotNull(rtti);
     
      assertEquals(siRtti,
                   rtti.getClass());
     
      assertEquals(clazz,
                   rtti.getDeclaringType()
      );
     
      assertNull(rtti.getThis());
     
      assertNull(rtti.getTarget());
    }
  }
View Full Code Here

*/
public class AspectWerkzAroundAdvice implements AroundAdvice {

  public Object invoke(JoinPoint joinPoint) throws Throwable {

    Rtti rtti = joinPoint.getRtti();
    if (rtti instanceof MethodRttiImpl) {
      MethodRttiImpl methodRtti = (MethodRttiImpl) rtti;
      return Monitor.execute(methodRtti.getMethod(), joinPoint.getThis(), // todo
          // or
          // target?
View Full Code Here

                joinPointInfo.state = JoinPointState.HAS_ADVICES;
            }
        }

        // set the RTTI
        Rtti rtti = joinPoint.getRtti().cloneFor(targetInstance, targetInstance);
        if (parameters != null) {
            ((CodeRtti) rtti).setParameterValues(parameters);
        }
        setRtti(joinPointInfo, rtti);
        enterCflow(joinPointInfo);
View Full Code Here

            } else {
                joinPointInfo.state = JoinPointState.HAS_ADVICES;
            }
        }

        Rtti rtti = joinPoint.getRtti().cloneFor(targetInstance, thisInstance);//AW-265
        if (parameters != null) {
            ((CodeRtti) rtti).setParameterValues(parameters);
        }
        setRtti(joinPointInfo, rtti);
        enterCflow(joinPointInfo);
View Full Code Here

                joinPointInfo.state = JoinPointState.HAS_ADVICES;
            }
        }

        // intialize the join point before each usage
        Rtti rtti = joinPoint.getRtti().cloneFor(targetInstance, targetInstance);//AW-265
        if (fieldValue[0] != null) {
            ((FieldRtti) rtti).setFieldValue(fieldValue[0]);
            // array due to sucky javassist field handling
        }
        setRtti(joinPointInfo, rtti);
View Full Code Here

                joinPointInfo.state = JoinPointState.HAS_ADVICES;
            }
        }

        // intialize the join point before each usage
        Rtti rtti = joinPoint.getRtti().cloneFor(targetInstance, targetInstance);//AW-265
        setRtti(joinPointInfo, rtti);
        enterCflow(joinPointInfo);
        try {
            return joinPoint.proceed();
        } finally {
View Full Code Here

TOP

Related Classes of org.codehaus.aspectwerkz.joinpoint.Rtti

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.