Example usage for org.springframework.aop.support ComposablePointcut ComposablePointcut

List of usage examples for org.springframework.aop.support ComposablePointcut ComposablePointcut

Introduction

In this page you can find the example usage for org.springframework.aop.support ComposablePointcut ComposablePointcut.

Prototype

public ComposablePointcut(MethodMatcher methodMatcher) 

Source Link

Document

Create a ComposablePointcut for the given MethodMatcher, with ClassFilter.TRUE .

Usage

From source file:prospring3.ch5.beanpostprocessor.DeassociatePointcutAdvisor.java

private Pointcut buildPointcut(Set<Class<? extends Annotation>> deassociateAnnotationTypes) {
    ComposablePointcut result = null;//  w w w  .j a v  a  2s .c o  m
    for (Class<? extends Annotation> deassociateAnnotationType : deassociateAnnotationTypes) {
        Pointcut mpc = new AnnotationMatchingPointcut(null, deassociateAnnotationType);
        if (result == null) {
            result = new ComposablePointcut(mpc);
        } else {
            result.union(mpc);
        }
    }
    return result;
}

From source file:org.activiti.spring.components.aop.ProcessStartingPointcutAdvisor.java

private Pointcut buildPointcut() {
    ComposablePointcut result = null;/*from   w  w w  . ja v a2s .  c  om*/
    for (Class<? extends Annotation> publisherAnnotationType : this.annotations) {
        Pointcut mpc = new MetaAnnotationMatchingPointcut(null, publisherAnnotationType);
        if (result == null) {
            result = new ComposablePointcut(mpc);
        } else {
            result.union(mpc);
        }
    }
    return result;
}