public interface PropertiesSource extends PropertySource
Properties based source. It allows to load properties
from resource, path, file or Properties directly.| Modifier and Type | Method and Description |
|---|---|
Properties |
getProperties() |
default String |
getProperty(String key)
Returns property as
String. |
static Properties |
loadProperties(File file) |
static Properties |
loadProperties(Object source) |
static Properties |
loadProperties(Properties properties) |
static Properties |
loadProperties(String resourceName) |
castString, getProperty, getProperty, getPropertystatic final String ENCODING
static Properties loadProperties(Object source)
static Properties loadProperties(Properties properties)
static Properties loadProperties(File file)
static Properties loadProperties(String resourceName)
Properties getProperties()
default String getProperty(String key)
PropertySourceString.getProperty in interface PropertySourcekey - The property key.Copyright © 2016 Etnetera a.s.. All rights reserved.