Examples of pointcut()


Examples of org.aspectj.internal.lang.annotation.ajcDeclareEoW.pointcut()

      }
    }
    for (Method method : clazz.getDeclaredMethods()) {
      if (method.isAnnotationPresent(ajcDeclareEoW.class)) {
        ajcDeclareEoW deowAnn = method.getAnnotation(ajcDeclareEoW.class);
        DeclareErrorOrWarning deow = new DeclareErrorOrWarningImpl(deowAnn.pointcut(),deowAnn.message(),deowAnn.isError(),this);
        deows.add(deow);
      }
    }
    DeclareErrorOrWarning[] ret = new DeclareErrorOrWarning[deows.size()];
    deows.toArray(ret);
View Full Code Here

Examples of org.aspectj.internal.lang.annotation.ajcDeclareEoW.pointcut()

      }
    }
    for (Method method : clazz.getDeclaredMethods()) {
      if (method.isAnnotationPresent(ajcDeclareEoW.class)) {
        ajcDeclareEoW deowAnn = method.getAnnotation(ajcDeclareEoW.class);
        DeclareErrorOrWarning deow = new DeclareErrorOrWarningImpl(deowAnn.pointcut(),deowAnn.message(),deowAnn.isError(),this);
        deows.add(deow);
      }
    }
    DeclareErrorOrWarning[] ret = new DeclareErrorOrWarning[deows.size()];
    deows.toArray(ret);
View Full Code Here

Examples of org.aspectj.internal.lang.annotation.ajcDeclareSoft.pointcut()

    for (Method method : clazz.getDeclaredMethods()) {
      if (method.isAnnotationPresent(ajcDeclareSoft.class)) {
        ajcDeclareSoft decSAnn = method.getAnnotation(ajcDeclareSoft.class);
        DeclareSoftImpl ds = new DeclareSoftImpl(
            this,
            decSAnn.pointcut(),
            decSAnn.exceptionType()
            );
        decs.add(ds);
      }
    }
View Full Code Here

Examples of org.aspectj.internal.lang.annotation.ajcDeclareSoft.pointcut()

    for (Method method : clazz.getDeclaredMethods()) {
      if (method.isAnnotationPresent(ajcDeclareSoft.class)) {
        ajcDeclareSoft decSAnn = method.getAnnotation(ajcDeclareSoft.class);
        DeclareSoftImpl ds = new DeclareSoftImpl(
            this,
            decSAnn.pointcut(),
            decSAnn.exceptionType()
            );
        decs.add(ds);
      }
    }
View Full Code Here

Examples of org.aspectj.lang.annotation.AfterReturning.pointcut()

    if (beforeAnn != null) return new AdviceImpl(method,beforeAnn.value(),AdviceKind.BEFORE);
    After afterAnn = method.getAnnotation(After.class);
    if (afterAnn != null) return new AdviceImpl(method,afterAnn.value(),AdviceKind.AFTER);
    AfterReturning afterReturningAnn = method.getAnnotation(AfterReturning.class);
    if (afterReturningAnn != null) {
      String pcExpr = afterReturningAnn.pointcut();
      if (pcExpr.equals("")) pcExpr = afterReturningAnn.value();
      return new AdviceImpl(method,pcExpr,AdviceKind.AFTER_RETURNING,afterReturningAnn.returning());
    }
    AfterThrowing afterThrowingAnn = method.getAnnotation(AfterThrowing.class);
    if (afterThrowingAnn != null) {
View Full Code Here

Examples of org.aspectj.lang.annotation.AfterReturning.pointcut()

    if (beforeAnn != null) return new AdviceImpl(method,beforeAnn.value(),AdviceKind.BEFORE);
    After afterAnn = method.getAnnotation(After.class);
    if (afterAnn != null) return new AdviceImpl(method,afterAnn.value(),AdviceKind.AFTER);
    AfterReturning afterReturningAnn = method.getAnnotation(AfterReturning.class);
    if (afterReturningAnn != null) {
      String pcExpr = afterReturningAnn.pointcut();
      if (pcExpr.equals("")) pcExpr = afterReturningAnn.value();
      return new AdviceImpl(method,pcExpr,AdviceKind.AFTER_RETURNING,afterReturningAnn.returning());
    }
    AfterThrowing afterThrowingAnn = method.getAnnotation(AfterThrowing.class);
    if (afterThrowingAnn != null) {
View Full Code Here

Examples of org.aspectj.lang.annotation.AfterThrowing.pointcut()

      if (pcExpr.equals("")) pcExpr = afterReturningAnn.value();
      return new AdviceImpl(method,pcExpr,AdviceKind.AFTER_RETURNING,afterReturningAnn.returning());
    }
    AfterThrowing afterThrowingAnn = method.getAnnotation(AfterThrowing.class);
    if (afterThrowingAnn != null) {
      String pcExpr = afterThrowingAnn.pointcut();
      if (pcExpr == null) pcExpr = afterThrowingAnn.value();
      return new AdviceImpl(method,pcExpr,AdviceKind.AFTER_THROWING,afterThrowingAnn.throwing());
    }
    Around aroundAnn = method.getAnnotation(Around.class);
    if (aroundAnn != null) return new AdviceImpl(method,aroundAnn.value(),AdviceKind.AROUND);
View Full Code Here

Examples of org.aspectj.lang.annotation.AfterThrowing.pointcut()

      if (pcExpr.equals("")) pcExpr = afterReturningAnn.value();
      return new AdviceImpl(method,pcExpr,AdviceKind.AFTER_RETURNING,afterReturningAnn.returning());
    }
    AfterThrowing afterThrowingAnn = method.getAnnotation(AfterThrowing.class);
    if (afterThrowingAnn != null) {
      String pcExpr = afterThrowingAnn.pointcut();
      if (pcExpr == null) pcExpr = afterThrowingAnn.value();
      return new AdviceImpl(method,pcExpr,AdviceKind.AFTER_THROWING,afterThrowingAnn.throwing());
    }
    Around aroundAnn = method.getAnnotation(Around.class);
    if (aroundAnn != null) return new AdviceImpl(method,aroundAnn.value(),AdviceKind.AROUND);
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.