Package org.ldaptive.props
Class SimplePropertySource<T>
- java.lang.Object
-
- org.ldaptive.props.AbstractPropertySource<T>
-
- org.ldaptive.props.SimplePropertySource<T>
-
- Type Parameters:
T
- type of object to invoke properties on
- All Implemented Interfaces:
PropertySource<T>
public final class SimplePropertySource<T> extends AbstractPropertySource<T>
Reads simple properties and returns an initialized object of the supplied type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ldaptive.props.PropertySource
PropertySource.PropertyDomain
-
-
Field Summary
Fields Modifier and Type Field Description private SimplePropertyInvoker
invoker
Invoker for simple properties.-
Fields inherited from class org.ldaptive.props.AbstractPropertySource
extraProps, logger, object, properties, PROPERTIES_FILE, propertiesDomain
-
-
Constructor Summary
Constructors Constructor Description SimplePropertySource(T t)
Creates a new simple property source using the default properties file.SimplePropertySource(T t, Reader... readers)
Creates a new simple property source.SimplePropertySource(T t, String... paths)
Creates a new simple property source.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize()
Initializes the object for this property source.-
Methods inherited from class org.ldaptive.props.AbstractPropertySource
initializeObject, loadProperties, loadProperties
-
-
-
-
Field Detail
-
invoker
private final SimplePropertyInvoker invoker
Invoker for simple properties.
-
-
Constructor Detail
-
SimplePropertySource
public SimplePropertySource(T t)
Creates a new simple property source using the default properties file.- Parameters:
t
- object to invoke properties on
-
SimplePropertySource
public SimplePropertySource(T t, String... paths)
Creates a new simple property source.- Parameters:
t
- object to invoke properties onpaths
- to read properties from
-
SimplePropertySource
public SimplePropertySource(T t, Reader... readers)
Creates a new simple property source.- Parameters:
t
- object to invoke properties onreaders
- to read properties from
-
SimplePropertySource
public SimplePropertySource(T t, Properties props)
Creates a new simple property source.- Parameters:
t
- object to invoke properties onprops
- to read properties from
-
SimplePropertySource
public SimplePropertySource(T t, PropertySource.PropertyDomain domain, Properties props)
Creates a new simple property source.- Parameters:
t
- object to invoke properties ondomain
- that properties are inprops
- to read properties from
-
-
Method Detail
-
initialize
public void initialize()
Description copied from interface:PropertySource
Initializes the object for this property source.
-
-