|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.props.AbstractPropertySource<T>
T - type of object to invoke properties onpublic abstract class AbstractPropertySource<T>
Provides methods common to property source implementations.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ldaptive.props.PropertySource |
|---|
PropertySource.PropertyDomain |
| Field Summary | |
|---|---|
protected Map<String,Object> |
extraProps
Properties that are not in the ldaptive domain. |
protected org.slf4j.Logger |
logger
Logger for this class. |
protected T |
object
Object to initialize with properties. |
protected Properties |
properties
Properties to set. |
static String |
PROPERTIES_FILE
Default file to read properties from, value is "classpath:/org/ldaptive/ldap.properties". |
protected PropertySource.PropertyDomain |
propertiesDomain
Domain that properties are in. |
| Constructor Summary | |
|---|---|
AbstractPropertySource(T t,
PropertySource.PropertyDomain pd,
Properties p)
Creates a new abstract property source. |
|
| Method Summary | |
|---|---|
protected void |
initializeObject(PropertyInvoker invoker)
Iterates over the properties and uses the invoker to set those properties on the object. |
protected static Properties |
loadProperties(Reader... readers)
Creates properties from the supplied reader. |
protected static Properties |
loadProperties(String... paths)
Creates properties from the supplied file paths. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.ldaptive.props.PropertySource |
|---|
initialize |
| Field Detail |
|---|
public static final String PROPERTIES_FILE
protected final org.slf4j.Logger logger
protected final T object
protected final PropertySource.PropertyDomain propertiesDomain
protected final Properties properties
protected final Map<String,Object> extraProps
| Constructor Detail |
|---|
public AbstractPropertySource(T t,
PropertySource.PropertyDomain pd,
Properties p)
t - to set properties onpd - domain that properties reside inp - properties to set| Method Detail |
|---|
protected static Properties loadProperties(String... paths)
loadProperties(Reader...).
paths - to read properties from
protected static Properties loadProperties(Reader... readers)
Properties.load(Reader). Readers supplied to this method will be closed.
readers - to read properties from
protected void initializeObject(PropertyInvoker invoker)
invoker - to set properties on the object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||