io.quarkus.arc.runtime.test.PreloadedTestApplicationClassPredicate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-arc Show documentation
Show all versions of quarkus-arc Show documentation
Build time CDI dependency injection
package io.quarkus.arc.runtime.test;
import java.util.Set;
import jakarta.inject.Singleton;
import io.quarkus.runtime.test.TestApplicationClassPredicate;
@Singleton
public class PreloadedTestApplicationClassPredicate implements TestApplicationClassPredicate {
private volatile Set applicationBeanClasses;
@Override
public boolean test(String name) {
return applicationBeanClasses.contains(name);
}
public void setApplicationBeanClasses(Set applicationBeanClasses) {
this.applicationBeanClasses = applicationBeanClasses;
}
}