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>
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
FieldsModifier and TypeFieldDescriptionprivate final SimplePropertyInvokerInvoker for simple properties.Fields inherited from class org.ldaptive.props.AbstractPropertySource
extraProps, logger, object, properties, PROPERTIES_FILE, propertiesDomain -
Constructor Summary
ConstructorsConstructorDescriptionCreates 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
Modifier and TypeMethodDescriptionvoidInitializes the object for this property source.Methods inherited from class org.ldaptive.props.AbstractPropertySource
initializeObject, loadProperties, loadProperties
-
Field Details
-
invoker
Invoker for simple properties.
-
-
Constructor Details
-
SimplePropertySource
Creates a new simple property source using the default properties file.- Parameters:
t- object to invoke properties on
-
SimplePropertySource
Creates a new simple property source.- Parameters:
t- object to invoke properties onpaths- to read properties from
-
SimplePropertySource
Creates a new simple property source.- Parameters:
t- object to invoke properties onreaders- to read properties from
-
SimplePropertySource
Creates a new simple property source.- Parameters:
t- object to invoke properties onprops- to read properties from
-
SimplePropertySource
Creates a new simple property source.- Parameters:
t- object to invoke properties ondomain- that properties are inprops- to read properties from
-
-
Method Details
-
initialize
public void initialize()Description copied from interface:PropertySourceInitializes the object for this property source.
-