-
public final class ConfigurationThe dotenv configuration
-
-
Field Summary
Fields Modifier and Type Field Description private Stringdirectoryprivate Stringfilenameprivate BooleanignoreIfMalformedprivate BooleanignoreIfMissingprivate BooleansystemProperties
-
Constructor Summary
Constructors Constructor Description Configuration()
-
Method Summary
Modifier and Type Method Description final StringgetDirectory()Set the directory containing the . final StringgetFilename()Sets the name of the .env. final BooleangetIgnoreIfMalformed()Do not throw an exception when . final BooleangetIgnoreIfMissing()Do not throw an exception when . final BooleangetSystemProperties()Set env vars into System properties. final UnitsetDirectory(String directory)Set the directory containing the . final UnitsetFilename(String filename)Sets the name of the .env. final UnitsetIgnoreIfMalformed(Boolean ignoreIfMalformed)Do not throw an exception when . final UnitsetIgnoreIfMissing(Boolean ignoreIfMissing)Do not throw an exception when . final UnitsetSystemProperties(Boolean systemProperties)Set env vars into System properties. -
-
Method Detail
-
getDirectory
final String getDirectory()
Set the directory containing the .env file
-
getFilename
final String getFilename()
Sets the name of the .env. The default is .env
-
getIgnoreIfMalformed
final Boolean getIgnoreIfMalformed()
Do not throw an exception when .env is malformed
-
getIgnoreIfMissing
final Boolean getIgnoreIfMissing()
Do not throw an exception when .env is missing
-
getSystemProperties
final Boolean getSystemProperties()
Set env vars into System properties. Enables fetch them via e.g. System.getProperty(...)
-
setDirectory
final Unit setDirectory(String directory)
Set the directory containing the .env file
-
setFilename
final Unit setFilename(String filename)
Sets the name of the .env. The default is .env
-
setIgnoreIfMalformed
final Unit setIgnoreIfMalformed(Boolean ignoreIfMalformed)
Do not throw an exception when .env is malformed
-
setIgnoreIfMissing
final Unit setIgnoreIfMissing(Boolean ignoreIfMissing)
Do not throw an exception when .env is missing
-
setSystemProperties
final Unit setSystemProperties(Boolean systemProperties)
Set env vars into System properties. Enables fetch them via e.g. System.getProperty(...)
-
-
-
-