Debian Codegraph @

api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/Validation.java

raw
1 /*
2 * Copyright (c) 2021 Red Hat and others
3 *
4 * This program and the accompanying materials are made available under the
5 * Apache Software License 2.0 which is available at:
6 * https://www.apache.org/licenses/LICENSE-2.0.
7 *
8 * SPDX-License-Identifier: Apache-2.0
9 */
10
11 package jakarta.enterprise.inject.build.compatible.spi;
12
13 import java.lang.annotation.ElementType;
14 import java.lang.annotation.Retention;
15 import java.lang.annotation.RetentionPolicy;
16 import java.lang.annotation.Target;
17
18 /**
19 * 5th phase of {@linkplain BuildCompatibleExtension build compatible extension} execution.
20 * Allows custom validation.
21 * <p>
22 * Methods annotated {@code @Validation} may declare parameters of these types:
23 * <ul>
24 * <li>{@link Messages}</li>
25 * <li>{@link Types}</li>
26 * </ul>
27 *
28 * @since 4.0
29 */
30 @Target(ElementType.METHOD)
31 @Retention(RetentionPolicy.RUNTIME)
32 public @interface Validation {
33 }