Package | Description |
---|---|
org.simplejavamail.util |
Modifier and Type | Method and Description |
---|---|
static ConfigLoader.Property |
ConfigLoader.Property.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConfigLoader.Property[] |
ConfigLoader.Property.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static Map<ConfigLoader.Property,Object> |
ConfigLoader.loadProperties(File filename,
boolean addProperties)
Loads properties from property
File , if provided. |
static Map<ConfigLoader.Property,Object> |
ConfigLoader.loadProperties(InputStream inputStream,
boolean addProperties)
Loads properties from
InputStream . |
static Map<ConfigLoader.Property,Object> |
ConfigLoader.loadProperties(Properties properties,
boolean addProperties)
Loads properties from another properties source, in case you want to provide your own list.
|
static Map<ConfigLoader.Property,Object> |
ConfigLoader.loadProperties(String filename,
boolean addProperties)
Loads properties from property file on the classpath, if provided.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
ConfigLoader.getProperty(ConfigLoader.Property property) |
static boolean |
ConfigLoader.hasProperty(ConfigLoader.Property property) |
static <T> T |
ConfigLoader.valueOrProperty(T value,
ConfigLoader.Property property) |
static <T> T |
ConfigLoader.valueOrProperty(T value,
ConfigLoader.Property property,
T defaultValue)
Returns the given value if not null and not empty, otherwise tries to resolve the given property and if still not found resot to the default value if
provided.
|
Copyright © 2017. All rights reserved.