View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.util.scan.annotations;
8   
9   /**
10   * A filter is used when performing an Annotation scan on a single class or the classpath.
11   * An Annotation filter is used to filter throw annotations on a class (including fields, methods and parameters) to determine
12   * whether the annotion should be accepted
13   */
14  public interface AnnotationFilter
15  {
16      /**
17       * Should the annotation represented by an {@link AnnotationInfo} object be
18       * accepted
19       * 
20       * @param info the annotation information to select on
21       * @return true if the annotation matches the criteria for this filter
22       */
23      boolean accept(AnnotationInfo info);
24  }