| 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 |
/** |
| 14 |
* Allows adding additional classes to the set of types discovered during type discovery. |
| 15 |
* Such classes will therefore be scanned during bean discovery. Annotations on these classes |
| 16 |
* can later be transformed using {@link Enhancement @Enhancement}. |
| 17 |
* |
| 18 |
* @since 4.0 |
| 19 |
*/ |
| 20 |
public interface ScannedClasses { |
| 21 |
/** |
| 22 |
* Adds a class with given name to the set of types discovered during type discovery. |
| 23 |
* The class will therefore be scanned during bean discovery. |
| 24 |
* <p> |
| 25 |
* Adding the same class multiple times, or adding a class that is automatically discovered |
| 26 |
* by the container, leads to non-portable behavior. |
| 27 |
* |
| 28 |
* @param className binary name of the class, as defined by <cite>The Java™ Language Specification</cite>; |
| 29 |
* in other words, the class name as returned by {@link Class#getName()} |
| 30 |
*/ |
| 31 |
void add(String className); |
| 32 |
} |