Skip to content

Commit

Permalink
BVAL-437 Rename @ValidateExecutable to @ValidateOnExecution
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelbernard committed Mar 13, 2013
1 parent f98c9d9 commit 7acedb7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/main/java/javax/validation/BootstrapConfiguration.java
Expand Up @@ -18,7 +18,7 @@
import java.util.Map;
import java.util.Set;
import javax.validation.executable.ExecutableType;
import javax.validation.executable.ValidateExecutable;
import javax.validation.executable.ValidateOnExecution;
import javax.validation.spi.ValidationProvider;

/**
Expand Down Expand Up @@ -86,7 +86,7 @@ public interface BootstrapConfiguration {

/**
* Returns the set of executable types that should be considered
* unless explicitly overridden via {@link ValidateExecutable}
* unless explicitly overridden via {@link ValidateOnExecution}
* <p/>
* Returns a set containing {@link ExecutableType#CONSTRUCTORS} and
* {@link ExecutableType#NON_GETTER_METHODS} if unspecified in the configuration.
Expand Down
Expand Up @@ -38,15 +38,15 @@
* The following describes the formal rules for deciding whether an executable is validated.
* They are applied in decreasing order:
* <ul>
* <li>the executable is validated if it is annotated with {@code @ValidateExecutable} and
* <li>the executable is validated if it is annotated with {@code @ValidateOnExecution} and
* the {@code type} attribute contains the executable type or {@link ExecutableType#IMPLICIT}.
* If the {@code type} attribute does neither contain the executable type nor {@code IMPLICIT},
* the executable is not validated.</li>
* <li>otherwise the executable is validated if the type (class, interface) on which it is
* declared is annotated with {@code @ValidateExecutable} and the {@code type} attribute
* declared is annotated with {@code @ValidateOnExecution} and the {@code type} attribute
* contains the executable type. If the {@code type} attribute contains
* {@code IMPLICIT}, then this rule is ignored and the behavior is
* equivalent to {@code ValidateExecutable} not being present. If the
* equivalent to {@code ValidateOnExecution} not being present. If the
* {@code type} attribute does not contain the executable type, the executable is not
* validated.</li>
* <li>otherwise the executable is validated if the global executable validation setting
Expand All @@ -57,15 +57,15 @@
* of the method it overrides or implements.</li>
* </ul>
* <p/>
* Note that you ou can exclude an executable from validation by making sure the rules above do not match
* or by annotating the executable with {@code @ValidateExecutable(NONE)}.
* Note that you can exclude an executable from validation by making sure the rules above do not match
* or by annotating the executable with {@code @ValidateOnExecution(NONE)}.
*
* @author Emmanuel Bernard
* @since 1.1
*/
@Target({ CONSTRUCTOR, METHOD, TYPE, PACKAGE })
@Retention(RUNTIME)
public @interface ValidateExecutable {
public @interface ValidateOnExecution {

/**
* List of executable types to be validated when called.
Expand Down
Expand Up @@ -16,7 +16,7 @@
*/
/**
* Package related to the control and execution of executable validation.
* Use {@link javax.validation.executable.ValidateExecutable} to control whether or
* Use {@link javax.validation.executable.ValidateOnExecution} to control whether or
* not a (set of) constructors or methods are being validated.
*/
package javax.validation.executable;

0 comments on commit 7acedb7

Please sign in to comment.