Examples of JoinPointManager


Examples of ch.ethz.prose.engine.JoinPointManager

   * Set up fixture.
   */
  protected void setUp() throws Exception {
    ProseSystem.startup();

    JoinPointManager jpm= ProseSystem.getAspectManager().getJoinPointManager();

    Method fooBarMethod  = FooBar.class.getDeclaredMethod("fooBar",new Class[]{});
    Method niceFooBarMethod = NiceFooBar.class.getDeclaredMethod("niceFooBar",new Class[]{});
    Method badFooBarMethod  = BadFooBar.class.getDeclaredMethod("badFooBar",new Class[]{});
    Method aSimpleMethodBodyMethod = ASimpleMethodBody.class.getDeclaredMethod("aSimpleMethodBody",new Class[]{});
    Method aSimpleBodyMethod = ASimpleBody.class.getDeclaredMethod("aSimpleBody",new Class[]{});
    Method aSeccondBodyMethod = ASeccondBody.class.getDeclaredMethod("aSeccondBody",new Class[]{});

    fooBarRequest            = (MethodEntryRequest)jpm.createJoinPointRequest(MethodEntryJoinPoint.KIND,fooBarMethod           );
    niceFooBarRequest        = (MethodEntryRequest)jpm.createJoinPointRequest(MethodEntryJoinPoint.KIND,niceFooBarMethod       );
    badFooBarRequest         = (MethodEntryRequest)jpm.createJoinPointRequest(MethodEntryJoinPoint.KIND,badFooBarMethod        );
    aSimpleMethodBodyRequest = (MethodEntryRequest)jpm.createJoinPointRequest(MethodEntryJoinPoint.KIND,aSimpleMethodBodyMethod);
    aSimpleBodyRequest       = (MethodEntryRequest)jpm.createJoinPointRequest(MethodEntryJoinPoint.KIND,aSimpleBodyMethod      );
    aSeccondBodyRequest      = (MethodEntryRequest)jpm.createJoinPointRequest(MethodEntryJoinPoint.KIND,aSeccondBodyMethod     );

  }
View Full Code Here

Examples of ch.ethz.prose.engine.JoinPointManager

   * Set up fixture.
   */
  protected void setUp() throws Exception {
    ProseSystem.startup();

    JoinPointManager jpm = ProseSystem.getAspectManager().getJoinPointManager();

    Method fooBarMethod            = getClass().getDeclaredMethod("fooBar"           ,new Class[]{});
    Method niceFooBarMethod        = getClass().getDeclaredMethod("niceFooBar"       ,new Class[]{});
    Method badFooBarMethod         = getClass().getDeclaredMethod("badFooBar"        ,new Class[]{});
    Method aSimpleMethodBodyMethod = getClass().getDeclaredMethod("aSimpleMethodBody",new Class[]{});
    Method aSimpleBodyMethod       = getClass().getDeclaredMethod("aSimpleBody"      ,new Class[]{});
    Method aSeccondBodyMethod      = getClass().getDeclaredMethod("aSeccondBody"     ,new Class[]{});

    fooBarRequest            = (MethodEntryRequest)jpm.createJoinPointRequest(MethodEntryJoinPoint.KIND,fooBarMethod           );
    niceFooBarRequest        = (MethodEntryRequest)jpm.createJoinPointRequest(MethodEntryJoinPoint.KIND,niceFooBarMethod       );
    badFooBarRequest         = (MethodEntryRequest)jpm.createJoinPointRequest(MethodEntryJoinPoint.KIND,badFooBarMethod        );
    aSimpleMethodBodyRequest = (MethodEntryRequest)jpm.createJoinPointRequest(MethodEntryJoinPoint.KIND,aSimpleMethodBodyMethod);
    aSimpleBodyRequest       = (MethodEntryRequest)jpm.createJoinPointRequest(MethodEntryJoinPoint.KIND,aSimpleBodyMethod      );
    aSeccondBodyRequest      = (MethodEntryRequest)jpm.createJoinPointRequest(MethodEntryJoinPoint.KIND,aSeccondBodyMethod     );
  }
View Full Code Here

Examples of ch.ethz.prose.engine.JoinPointManager

   * Set up fixture.
   */
  protected void setUp() throws Exception {
    ProseSystem.startup();

    JoinPointManager jpm = ProseSystem.getAspectManager().getJoinPointManager();

    pickNick = new Basket();
    dinner = new Meal();

    annaRequest   = (FieldAccessRequest)jpm.createJoinPointRequest(FieldAccessJoinPoint.KIND,Single.class.getDeclaredField("anna")  );
    appleRequest  = (FieldAccessRequest)jpm.createJoinPointRequest(FieldAccessJoinPoint.KIND,Basket.class.getDeclaredField("apple") );
    bananaRequest = (FieldAccessRequest)jpm.createJoinPointRequest(FieldAccessJoinPoint.KIND,Basket.class.getDeclaredField("banana"));
    pearRequest   = (FieldAccessRequest)jpm.createJoinPointRequest(FieldAccessJoinPoint.KIND,Basket.class.getDeclaredField("pear")  );
    teaRequest    = (FieldAccessRequest)jpm.createJoinPointRequest(FieldAccessJoinPoint.KIND,Basket.class.getDeclaredField("tea")   );
    saladRequest  = (FieldAccessRequest)jpm.createJoinPointRequest(FieldAccessJoinPoint.KIND,  Meal.class.getDeclaredField("salad") );
    steakRequest  = (FieldAccessRequest)jpm.createJoinPointRequest(FieldAccessJoinPoint.KIND,  Meal.class.getDeclaredField("steak") );
    sauceRequest  = (FieldAccessRequest)jpm.createJoinPointRequest(FieldAccessJoinPoint.KIND,  Meal.class.getDeclaredField("sauce") );
    scotchRequest = (FieldAccessRequest)jpm.createJoinPointRequest(FieldAccessJoinPoint.KIND,  Meal.class.getDeclaredField("scotch"));
  }
View Full Code Here

Examples of ch.ethz.prose.engine.JoinPointManager

  /**
   * This Method is going to be overwritten from a subclass of <code>LocalAspectManager</code>
   * that wants to register its own <code>JoinPointManager</code>.
   */
  protected void createJoinPointManager(boolean isConnected, JVMAspectInterface ai) {
    jpm = new JoinPointManager(isConnected, ai,  true);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.