Annotation Type Validation
-
@Retention(RUNTIME) @Target(METHOD) public @interface Validation
The annotated method should be called after the bean is instantiated, to confirm that the bean is correctly formed. If the bean is not correctly formed, throw a runtime exception.