![JAR search and dependency download from the Maven repository](/logo.png)
jakarta.enterprise.inject.build.compatible.spi.ScannedClasses Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jakarta.enterprise.cdi-api Show documentation
Show all versions of jakarta.enterprise.cdi-api Show documentation
APIs for CDI (Contexts and Dependency Injection for Java)
package jakarta.enterprise.inject.build.compatible.spi;
/**
* Allows adding additional classes to the set of types discovered during type discovery.
* Such classes will therefore be scanned during bean discovery. Annotations on these classes
* can later be transformed using {@link Enhancement @Enhancement}.
*
* @since 4.0
*/
public interface ScannedClasses {
/**
* Adds a class with given name to the set of types discovered during type discovery.
* The class will therefore be scanned during bean discovery.
*
* Adding the same class multiple times, or adding a class that is automatically discovered
* by the container, leads to non-portable behavior.
*
* @param className binary name of the class, as defined by The Java™ Language Specification;
* in other words, the class name as returned by {@link Class#getName()}
*/
void add(String className);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy