Example usage for org.springframework.aop ClassFilter TRUE

List of usage examples for org.springframework.aop ClassFilter TRUE

Introduction

In this page you can find the example usage for org.springframework.aop ClassFilter TRUE.

Prototype

ClassFilter TRUE

To view the source code for org.springframework.aop ClassFilter TRUE.

Click Source Link

Document

Canonical instance of a ClassFilter that matches all classes.

Usage

From source file:net.bull.javamelody.MonitoredSpringAsyncAndScheduledPointcut.java

/**
 * @return a class filter that lets all class through.
 */
@Override
public ClassFilter getClassFilter() {
    return ClassFilter.TRUE;
}

From source file:com.inspiresoftware.lib.dto.geda.interceptor.impl.GeDAMethodMatcherPointcut.java

public ClassFilter getClassFilter() {
    return ClassFilter.TRUE;
}

From source file:org.activiti.spring.components.aop.util.MetaAnnotationMatchingPointcut.java

/**
 * Create a new MetaAnnotationMatchingPointcut for the given annotation type.
 *
 * @param classAnnotationType   the annotation type to look for at the class level
 *                             (can be <code>null</code>)
 * @param methodAnnotationType the annotation type to look for at the method level
 *                             (can be <code>null</code>)
 *///w  w w .  j a v  a2 s  .co  m
public MetaAnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType,
        Class<? extends Annotation> methodAnnotationType) {

    Assert.isTrue((classAnnotationType != null || methodAnnotationType != null),
            "Either Class annotation type or Method annotation type needs to be specified (or both)");

    if (classAnnotationType != null) {
        this.classFilter = new AnnotationClassFilter(classAnnotationType);
    } else {
        this.classFilter = ClassFilter.TRUE;
    }

    if (methodAnnotationType != null) {
        this.methodMatcher = new MetaAnnotationMethodMatcher(methodAnnotationType);
    } else {
        this.methodMatcher = MethodMatcher.TRUE;
    }
}