public interface AndHowInit
AndHowInit on the classpath, if it exists, will be
auto-discovered and used to initiate AndHow at startup. Usage of this interfact is optional
and not normally required. Times where your application would need to implement this interface
are:
StdEnvVarLoader.
PropFileOnFilesystemLoader
StdPropFileOnClasspathLoader
All of those things can be done at the entry point of your application (ie in the main method), but using an implementation of this interface ensures that the configuration is found regardless of the entry point.
It is a fatal RuntimeException for there to be more than one AndHowInit on the
classpath since this would make startup configuration ambiguous.
In general, never distribute a AndHowInit implementation in a reusable library since this
would prevent a user of that library from creating their own AndHowInit for startup
configuration of an application.
A single AndHowTestInit implementation is also allowed. See AndHowTestInit.
| Modifier and Type | Method and Description |
|---|---|
AndHowConfiguration |
getConfiguration() |
AndHowConfiguration getConfiguration()
Copyright © 2022. All rights reserved.