Package org.springframework.aop.aspectj

Examples of org.springframework.aop.aspectj.AspectJExpressionPointcut$BeanNameContextMatcher


    switch (this.ajType.getPerClause().getKind()) {
      case SINGLETON :
        this.perClausePointcut = Pointcut.TRUE;
        return;
      case PERTARGET : case PERTHIS :
        AspectJExpressionPointcut ajexp = new AspectJExpressionPointcut();
        ajexp.setLocation("@Aspect annotation on " + aspectClass.getName());
        ajexp.setExpression(findPerClause(aspectClass));
        this.perClausePointcut = ajexp;
        return;
      case PERTYPEWITHIN :
        // Works with a type pattern
        this.perClausePointcut = new ComposablePointcut(new TypePatternClassFilter(findPerClause(aspectClass)));
View Full Code Here


    Class<?> [] pointcutParameterTypes = new Class<?>[0];
    if (pointcutParameterNames != null) {
      pointcutParameterTypes = extractPointcutParameterTypes(pointcutParameterNames,annotatedMethod);
    }
   
    AspectJExpressionPointcut ajexp =
        new AspectJExpressionPointcut(declarationScope,pointcutParameterNames,pointcutParameterTypes);
    ajexp.setLocation(annotatedMethod.toString());
    return ajexp;
  }
View Full Code Here

  public Advisor getAdvisor(Method candidateAdviceMethod, MetadataAwareAspectInstanceFactory aif,
      int declarationOrderInAspect, String aspectName) {

    validate(aif.getAspectMetadata().getAspectClass());

    AspectJExpressionPointcut ajexp =
        getPointcut(candidateAdviceMethod, aif.getAspectMetadata().getAspectClass());
    if (ajexp == null) {
      return null;
    }
    return new InstantiationModelAwarePointcutAdvisorImpl(
View Full Code Here

    AspectJAnnotation<?> aspectJAnnotation =
        AbstractAspectJAdvisorFactory.findAspectJAnnotationOnMethod(candidateAdviceMethod);
    if (aspectJAnnotation == null) {
      return null;
    }
    AspectJExpressionPointcut ajexp =
        new AspectJExpressionPointcut(candidateAspectClass, new String[0], new Class[0]);
    ajexp.setExpression(aspectJAnnotation.getPointcutExpression());
    return ajexp;
  }
View Full Code Here

    Class<?> [] pointcutParameterTypes = new Class<?>[0];
    if (pointcutParameterNames != null) {
      pointcutParameterTypes = extractPointcutParameterTypes(pointcutParameterNames,annotatedMethod);
    }
   
    AspectJExpressionPointcut ajexp =
        new AspectJExpressionPointcut(declarationScope,pointcutParameterNames,pointcutParameterTypes);
    ajexp.setLocation(annotatedMethod.toString());
    return ajexp;
  }
View Full Code Here

  public Advisor getAdvisor(Method candidateAdviceMethod, MetadataAwareAspectInstanceFactory aif,
      int declarationOrderInAspect, String aspectName) {

    validate(aif.getAspectMetadata().getAspectClass());

    AspectJExpressionPointcut ajexp =
        getPointcut(candidateAdviceMethod, aif.getAspectMetadata().getAspectClass());
    if (ajexp == null) {
      return null;
    }
    return new InstantiationModelAwarePointcutAdvisorImpl(
View Full Code Here

    AspectJAnnotation<?> aspectJAnnotation =
        AbstractAspectJAdvisorFactory.findAspectJAnnotationOnMethod(candidateAdviceMethod);
    if (aspectJAnnotation == null) {
      return null;
    }
    AspectJExpressionPointcut ajexp =
        new AspectJExpressionPointcut(candidateAspectClass, new String[0], new Class[0]);
    ajexp.setExpression(aspectJAnnotation.getPointcutExpression());
    return ajexp;
  }
View Full Code Here

    switch (this.ajType.getPerClause().getKind()) {
      case SINGLETON :
        this.perClausePointcut = Pointcut.TRUE;
        return;
      case PERTARGET : case PERTHIS :
        AspectJExpressionPointcut ajexp = new AspectJExpressionPointcut();
        ajexp.setLocation("@Aspect annotation on " + aspectClass.getName());
        ajexp.setExpression(findPerClause(aspectClass));
        this.perClausePointcut = ajexp;
        return;
      case PERTYPEWITHIN :
        // Works with a type pattern
        this.perClausePointcut = new ComposablePointcut(new TypePatternClassFilter(findPerClause(aspectClass)));
View Full Code Here

    Class<?> [] pointcutParameterTypes = new Class<?>[0];
    if (pointcutParameterNames != null) {
      pointcutParameterTypes = extractPointcutParameterTypes(pointcutParameterNames,annotatedMethod);
    }
   
    AspectJExpressionPointcut ajexp =
        new AspectJExpressionPointcut(declarationScope,pointcutParameterNames,pointcutParameterTypes);
    ajexp.setLocation(annotatedMethod.toString());
    return ajexp;
  }
View Full Code Here

  public Advisor getAdvisor(Method candidateAdviceMethod, MetadataAwareAspectInstanceFactory aif,
      int declarationOrderInAspect, String aspectName) {

    validate(aif.getAspectMetadata().getAspectClass());

    AspectJExpressionPointcut ajexp =
        getPointcut(candidateAdviceMethod, aif.getAspectMetadata().getAspectClass());
    if (ajexp == null) {
      return null;
    }
    return new InstantiationModelAwarePointcutAdvisorImpl(
View Full Code Here

TOP

Related Classes of org.springframework.aop.aspectj.AspectJExpressionPointcut$BeanNameContextMatcher

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.