Package | Description |
---|---|
org.simplejavamail.config |
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(@Nullable 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 @Nullable Boolean |
ConfigLoader.getBooleanProperty(ConfigLoader.Property property) |
static @Nullable Integer |
ConfigLoader.getIntegerProperty(ConfigLoader.Property property) |
static <T> T |
ConfigLoader.getProperty(ConfigLoader.Property property) |
static @Nullable String |
ConfigLoader.getStringProperty(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,
@NotNull 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 resort to the default value if
provided.
|
static @Nullable Boolean |
ConfigLoader.valueOrPropertyAsBoolean(@Nullable Boolean value,
@NotNull ConfigLoader.Property property,
@Nullable Boolean defaultValue)
|
static @Nullable Integer |
ConfigLoader.valueOrPropertyAsInteger(@Nullable Integer value,
@NotNull ConfigLoader.Property property,
@Nullable Integer defaultValue)
|
static @Nullable String |
ConfigLoader.valueOrPropertyAsString(@Nullable String value,
@NotNull ConfigLoader.Property property,
@Nullable String defaultValue)
|
Copyright © 2009–2022. All rights reserved.