01: /*******************************************************************************
02: * Portions created by Sebastian Thomschke are copyright (c) 2005-2007 Sebastian
03: * Thomschke.
04: *
05: * All Rights Reserved. This program and the accompanying materials
06: * are made available under the terms of the Eclipse Public License v1.0
07: * which accompanies this distribution, and is available at
08: * http://www.eclipse.org/legal/epl-v10.html
09: *
10: * Contributors:
11: * Sebastian Thomschke - initial implementation.
12: *******************************************************************************/package net.sf.oval.guard;
13:
14: import java.lang.annotation.Documented;
15: import java.lang.annotation.ElementType;
16: import java.lang.annotation.Retention;
17: import java.lang.annotation.RetentionPolicy;
18: import java.lang.annotation.Target;
19:
20: /**
21: * Before the annotated method is executed all field and getter constraints
22: * (invariants) of this object are validated.
23: *
24: * If constraint violations occur, the annotated method will not be executed
25: * instead it will throw a ConstraintsViolatedException exception.<br>
26: *
27: * @author Sebastian Thomschke
28: * @see net.sf.oval.guard.GuardAspect
29: */
30: @Documented
31: @Retention(RetentionPolicy.RUNTIME)
32: @Target({ElementType.METHOD})
33: public @interface PreValidateThis {
34: //
35: }
|