Package org.ldaptive.props
Class ConnectionConfigPropertySource
- java.lang.Object
-
- org.ldaptive.props.AbstractPropertySource<ConnectionConfig>
-
- org.ldaptive.props.ConnectionConfigPropertySource
-
- All Implemented Interfaces:
PropertySource<ConnectionConfig>
public final class ConnectionConfigPropertySource extends AbstractPropertySource<ConnectionConfig>
Reads properties specific toConnectionConfig
and returns an initialized object of that type.- Author:
- Middleware Services
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ldaptive.props.PropertySource
PropertySource.PropertyDomain
-
-
Field Summary
-
Fields inherited from class org.ldaptive.props.AbstractPropertySource
extraProps, logger, object, properties, PROPERTIES_FILE, propertiesDomain
-
-
Constructor Summary
Constructors Constructor Description ConnectionConfigPropertySource(ConnectionConfig cc)
Creates a new connection config property source using the default properties file.ConnectionConfigPropertySource(ConnectionConfig cc, java.io.Reader... readers)
Creates a new connection config property source.ConnectionConfigPropertySource(ConnectionConfig cc, java.lang.String... paths)
Creates a new connection config property source.ConnectionConfigPropertySource(ConnectionConfig cc, java.util.Properties props)
Creates a new connection config property source.ConnectionConfigPropertySource(ConnectionConfig cc, PropertySource.PropertyDomain domain, java.util.Properties props)
Creates a new connection config property source.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Set<java.lang.String>
getProperties()
Returns the property names for this property source.void
initialize()
Initializes the object for this property source.-
Methods inherited from class org.ldaptive.props.AbstractPropertySource
initializeObject, loadProperties, loadProperties
-
-
-
-
Constructor Detail
-
ConnectionConfigPropertySource
public ConnectionConfigPropertySource(ConnectionConfig cc)
Creates a new connection config property source using the default properties file.- Parameters:
cc
- connection config to invoke properties on
-
ConnectionConfigPropertySource
public ConnectionConfigPropertySource(ConnectionConfig cc, java.lang.String... paths)
Creates a new connection config property source.- Parameters:
cc
- connection config to invoke properties onpaths
- to read properties from
-
ConnectionConfigPropertySource
public ConnectionConfigPropertySource(ConnectionConfig cc, java.io.Reader... readers)
Creates a new connection config property source.- Parameters:
cc
- connection config to invoke properties onreaders
- to read properties from
-
ConnectionConfigPropertySource
public ConnectionConfigPropertySource(ConnectionConfig cc, java.util.Properties props)
Creates a new connection config property source.- Parameters:
cc
- connection config to invoke properties onprops
- to read properties from
-
ConnectionConfigPropertySource
public ConnectionConfigPropertySource(ConnectionConfig cc, PropertySource.PropertyDomain domain, java.util.Properties props)
Creates a new connection config property source.- Parameters:
cc
- connection config 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.
-
getProperties
public static java.util.Set<java.lang.String> getProperties()
Returns the property names for this property source.- Returns:
- all property names
-
-