| 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 |
* 1st phase of {@linkplain BuildCompatibleExtension build compatible extension} execution. |
| 20 |
* Allow adding additional classes to the set of types discovered during type discovery. |
| 21 |
* Also allows registering custom CDI meta-annotations. |
| 22 |
* <p> |
| 23 |
* Methods annotated {@code @Discovery} may declare parameters of these types: |
| 24 |
* <ul> |
| 25 |
* <li>{@link ScannedClasses}</li> |
| 26 |
* <li>{@link MetaAnnotations}</li> |
| 27 |
* <li>{@link Messages}</li> |
| 28 |
* </ul> |
| 29 |
* |
| 30 |
* @since 4.0 |
| 31 |
*/ |
| 32 |
@Target(ElementType.METHOD) |
| 33 |
@Retention(RetentionPolicy.RUNTIME) |
| 34 |
public @interface Discovery { |
| 35 |
} |