open class PropertiesFactoryBean : PropertiesLoaderSupport, FactoryBean<Properties>, InitializingBean
Allows for making a properties file from a classpath location available as Properties instance in a bean factory. Can be used to populate any bean property of type Properties via a bean reference.
Supports loading from a properties file and/or setting local properties on this FactoryBean. The created Properties instance will be merged from loaded and local values. If neither a location nor local properties are set, an exception will be thrown on initialization.
Can create a singleton or a new object on each request. Default is a singleton.
Author
Juergen Hoeller
See Also
#setLocation#setProperties#setLocalOverridejava.util.Properties
PropertiesFactoryBean()
Allows for making a properties file from a classpath location available as Properties instance in a bean factory. Can be used to populate any bean property of type Properties via a bean reference. Supports loading from a properties file and/or setting local properties on this FactoryBean. The created Properties instance will be merged from loaded and local values. If neither a location nor local properties are set, an exception will be thrown on initialization. Can create a singleton or a new object on each request. Default is a singleton. |
fun afterPropertiesSet(): Unit |
|
fun getObject(): Properties |
|
open fun getObjectType(): Class<Properties> |
|
fun isSingleton(): Boolean |
|
fun setSingleton(singleton: Boolean): Unit
Set whether a shared 'singleton' Properties instance should be created, or rather a new Properties instance on each request. Default is "true" (a shared singleton). |