public class ConfigurationOptionLocator extends Object
Constructor and Description |
---|
ConfigurationOptionLocator() |
ConfigurationOptionLocator(OptionsClassLocation[] locations,
String pathPrefix) |
Modifier and Type | Method and Description |
---|---|
void |
discoverOptionsAndApply(Path rootDir,
BiConsumerWithException<Class<?>,Collection<OptionWithMetaInfo>,? extends Exception> optionsConsumer) |
static List<Class<?>> |
discoverOptionsAndApply(Path rootDir,
String module,
String packageName,
String pathPrefix) |
static List<OptionWithMetaInfo> |
extractConfigOptions(Class<?> clazz) |
public ConfigurationOptionLocator()
public ConfigurationOptionLocator(OptionsClassLocation[] locations, String pathPrefix)
public void discoverOptionsAndApply(Path rootDir, BiConsumerWithException<Class<?>,Collection<OptionWithMetaInfo>,? extends Exception> optionsConsumer) throws Exception
Exception
public static List<Class<?>> discoverOptionsAndApply(Path rootDir, String module, String packageName, String pathPrefix) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
@VisibleForTesting public static List<OptionWithMetaInfo> extractConfigOptions(Class<?> clazz)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.