final class ClassConfigPropertiesUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
(package private) static boolean |
addProducerMethodForClassConfigProperties(ClassLoader classLoader,
org.jboss.jandex.ClassInfo configPropertiesClassInfo,
io.quarkus.gizmo.ClassCreator producerClassCreator,
String prefixStr,
ConfigProperties.NamingStrategy namingStrategy,
boolean failOnMismatchingMember,
boolean needsQualifier,
org.jboss.jandex.IndexView applicationIndex,
BuildProducer<ReflectiveMethodBuildItem> reflectiveMethods,
BuildProducer<ConfigPropertyBuildItem> configProperties) |
(package private) static void |
generateStartupObserverThatInjectsConfigClass(io.quarkus.gizmo.ClassOutput classOutput,
Set<org.jboss.jandex.DotName> configClasses)
Generates a class like the following:
|
static void generateStartupObserverThatInjectsConfigClass(io.quarkus.gizmo.ClassOutput classOutput,
Set<org.jboss.jandex.DotName> configClasses)
@ApplicationScoped
public class EnsureValidation {
@Inject
MyConfig myConfig;
@Inject
OtherProperties other;
public void onStartup(@Observes StartupEvent ev) {
myConfig.toString();
other.toString();
}
}
This class is useful in order to ensure that validation errors will prevent application startupstatic boolean addProducerMethodForClassConfigProperties(ClassLoader classLoader, org.jboss.jandex.ClassInfo configPropertiesClassInfo, io.quarkus.gizmo.ClassCreator producerClassCreator, String prefixStr, ConfigProperties.NamingStrategy namingStrategy, boolean failOnMismatchingMember, boolean needsQualifier, org.jboss.jandex.IndexView applicationIndex, BuildProducer<ReflectiveMethodBuildItem> reflectiveMethods, BuildProducer<ConfigPropertyBuildItem> configProperties)
Copyright © 2020 JBoss by Red Hat. All rights reserved.