T
- type of object to invoke properties onpublic final class SimplePropertySource<T> extends AbstractPropertySource<T>
PropertySource.PropertyDomain
Modifier and Type | Field and Description |
---|---|
private SimplePropertyInvoker |
invoker
Invoker for simple properties.
|
extraProps, logger, object, properties, PROPERTIES_FILE, propertiesDomain
Constructor and Description |
---|
SimplePropertySource(T t)
Creates a new simple property source using the default properties file.
|
SimplePropertySource(T t,
Properties props)
Creates a new simple property source.
|
SimplePropertySource(T t,
PropertySource.PropertyDomain domain,
Properties props)
Creates a new simple property source.
|
SimplePropertySource(T t,
Reader... readers)
Creates a new simple property source.
|
SimplePropertySource(T t,
String... paths)
Creates a new simple property source.
|
Modifier and Type | Method and Description |
---|---|
void |
initialize()
Initializes the object for this property source.
|
initializeObject, loadProperties, loadProperties
private final SimplePropertyInvoker invoker
public SimplePropertySource(T t)
t
- object to invoke properties onpublic SimplePropertySource(T t, String... paths)
t
- object to invoke properties onpaths
- to read properties frompublic SimplePropertySource(T t, Reader... readers)
t
- object to invoke properties onreaders
- to read properties frompublic SimplePropertySource(T t, Properties props)
t
- object to invoke properties onprops
- to read properties frompublic SimplePropertySource(T t, PropertySource.PropertyDomain domain, Properties props)
t
- object to invoke properties ondomain
- that properties are inprops
- to read properties frompublic void initialize()
PropertySource
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.