View Javadoc
1   /*******************************************************************************
2    * Portions created by Sebastian Thomschke are copyright (c) 2005-2011 Sebastian
3    * Thomschke.
4    * 
5    * All Rights Reserved. This program and the accompanying materials
6    * are made available under the terms of the Eclipse Public License v1.0
7    * which accompanies this distribution, and is available at
8    * http://www.eclipse.org/legal/epl-v10.html
9    * 
10   * Contributors:
11   *     Sebastian Thomschke - initial implementation.
12   *******************************************************************************/
13  package net.sf.oval.configuration.annotation;
14  
15  import java.lang.annotation.Annotation;
16  
17  import net.sf.oval.CheckExclusion;
18  import net.sf.oval.exception.InvalidConfigurationException;
19  
20  /**
21   * Interface for constraint checks that are configurable via annotations.
22   * 
23   * @author Sebastian Thomschke
24   */
25  public interface AnnotationCheckExclusion<ExclusionAnnotation extends Annotation> extends CheckExclusion
26  {
27  	/**
28  	 * Configures the check exclusion based on the given exclusion annotation.
29  	 * @param exclusionAnnotation the exclusion annotation to use for configuration
30  	 * @throws InvalidConfigurationException in case of an illegal configuration setting
31  	 */
32  	void configure(ExclusionAnnotation exclusionAnnotation) throws InvalidConfigurationException;
33  }