diff --git a/api/src/main/java/jakarta/enterprise/inject/se/SeContainerInitializer.java b/api/src/main/java/jakarta/enterprise/inject/se/SeContainerInitializer.java index cbf5056f..1b53fddd 100644 --- a/api/src/main/java/jakarta/enterprise/inject/se/SeContainerInitializer.java +++ b/api/src/main/java/jakarta/enterprise/inject/se/SeContainerInitializer.java @@ -20,6 +20,7 @@ import java.util.ServiceConfigurationError; import java.util.ServiceLoader; +import jakarta.enterprise.inject.build.compatible.spi.BuildCompatibleExtension; import jakarta.enterprise.inject.spi.Extension; /** @@ -190,22 +191,32 @@ private static SeContainerInitializer findSeContainerInitializer() { public abstract SeContainerInitializer addPackages(boolean scanRecursively, Package... packages); /** - * Add extensions to the set of extensions. + * Add portable extensions to the set of extensions. * - * @param extensions extensions to use in the container + * @param extensions portable extensions to use in the container * @return self */ public abstract SeContainerInitializer addExtensions(Extension... extensions); /** - * Add extensions to the set of extensions. + * Add portable extensions to the set of extensions. * - * @param extensions extensions class to use in the container + * @param extensions portable extension classes to use in the container * @return self */ @SuppressWarnings("unchecked") public abstract SeContainerInitializer addExtensions(Class... extensions); + /** + * Add build compatible extensions to the set of extensions. + * + * @param extensions build compatible extension classes to use in the container + * @return self + */ + @SuppressWarnings("unchecked") + public abstract SeContainerInitializer addBuildCompatibleExtensions( + Class... extensions); + /** * Add interceptor classes to the list of enabled interceptors for the synthetic bean archive. *

diff --git a/api/src/test/java/org/jboss/cdi/api/test/se/DummySeContainerInitializer.java b/api/src/test/java/org/jboss/cdi/api/test/se/DummySeContainerInitializer.java index f5801103..d4b33a03 100644 --- a/api/src/test/java/org/jboss/cdi/api/test/se/DummySeContainerInitializer.java +++ b/api/src/test/java/org/jboss/cdi/api/test/se/DummySeContainerInitializer.java @@ -17,6 +17,7 @@ import java.lang.annotation.Annotation; import java.util.Map; +import jakarta.enterprise.inject.build.compatible.spi.BuildCompatibleExtension; import jakarta.enterprise.inject.se.SeContainer; import jakarta.enterprise.inject.se.SeContainerInitializer; import jakarta.enterprise.inject.spi.Extension; @@ -64,6 +65,11 @@ public final SeContainerInitializer addExtensions(Class... return null; } + @Override + public SeContainerInitializer addBuildCompatibleExtensions(Class... extensions) { + return null; + } + @Override public SeContainerInitializer enableInterceptors(Class... interceptorClasses) { return null; diff --git a/api/src/test/java/org/jboss/cdi/api/test/se/DummySeContainerInitializer2.java b/api/src/test/java/org/jboss/cdi/api/test/se/DummySeContainerInitializer2.java index 952bd796..6cd9aca5 100644 --- a/api/src/test/java/org/jboss/cdi/api/test/se/DummySeContainerInitializer2.java +++ b/api/src/test/java/org/jboss/cdi/api/test/se/DummySeContainerInitializer2.java @@ -17,6 +17,7 @@ import java.lang.annotation.Annotation; import java.util.Map; +import jakarta.enterprise.inject.build.compatible.spi.BuildCompatibleExtension; import jakarta.enterprise.inject.se.SeContainer; import jakarta.enterprise.inject.se.SeContainerInitializer; import jakarta.enterprise.inject.spi.Extension; @@ -64,6 +65,11 @@ public final SeContainerInitializer addExtensions(Class... return null; } + @Override + public SeContainerInitializer addBuildCompatibleExtensions(Class... extensions) { + return null; + } + @Override public SeContainerInitializer enableInterceptors(Class... interceptorClasses) { return null;