List of usage examples for org.springframework.aop.support ComposablePointcut ComposablePointcut
public ComposablePointcut(MethodMatcher methodMatcher)
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; }