Package org.ldaptive.props
Class AuthenticatorPropertySource
- java.lang.Object
-
- org.ldaptive.props.AbstractPropertySource<Authenticator>
-
- org.ldaptive.props.AuthenticatorPropertySource
-
- All Implemented Interfaces:
PropertySource<Authenticator>
public final class AuthenticatorPropertySource extends AbstractPropertySource<Authenticator>
Reads properties specific toAuthenticator
and returns an initialized object of that 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 static AuthenticatorPropertyInvoker
INVOKER
Invoker for authenticator.-
Fields inherited from class org.ldaptive.props.AbstractPropertySource
extraProps, logger, object, properties, PROPERTIES_FILE, propertiesDomain
-
-
Constructor Summary
Constructors Constructor Description AuthenticatorPropertySource(Authenticator a)
Creates a new authenticator property source using the default properties file.AuthenticatorPropertySource(Authenticator a, Reader... readers)
Creates a new authenticator property source.AuthenticatorPropertySource(Authenticator a, String... paths)
Creates a new authenticator property source.AuthenticatorPropertySource(Authenticator a, Properties props)
Creates a new authenticator property source.AuthenticatorPropertySource(Authenticator a, PropertySource.PropertyDomain domain, Properties props)
Creates a new authenticator property source.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Set<String>
getProperties()
Returns the property names for this property source.private void
initConnectionFactoryManager(ConnectionFactoryManager cfm)
Initializes the supplied connection factory manager using the properties in this property source.void
initialize()
Initializes the object for this property source.-
Methods inherited from class org.ldaptive.props.AbstractPropertySource
initializeObject, loadProperties, loadProperties
-
-
-
-
Field Detail
-
INVOKER
private static final AuthenticatorPropertyInvoker INVOKER
Invoker for authenticator.
-
-
Constructor Detail
-
AuthenticatorPropertySource
public AuthenticatorPropertySource(Authenticator a)
Creates a new authenticator property source using the default properties file.- Parameters:
a
- authenticator to set properties on
-
AuthenticatorPropertySource
public AuthenticatorPropertySource(Authenticator a, String... paths)
Creates a new authenticator property source.- Parameters:
a
- authenticator to set properties onpaths
- to read properties from
-
AuthenticatorPropertySource
public AuthenticatorPropertySource(Authenticator a, Reader... readers)
Creates a new authenticator property source.- Parameters:
a
- authenticator to set properties onreaders
- to read properties from
-
AuthenticatorPropertySource
public AuthenticatorPropertySource(Authenticator a, Properties props)
Creates a new authenticator property source.- Parameters:
a
- authenticator to set properties onprops
- to read properties from
-
AuthenticatorPropertySource
public AuthenticatorPropertySource(Authenticator a, PropertySource.PropertyDomain domain, Properties props)
Creates a new authenticator property source.- Parameters:
a
- authenticator to set 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.
-
initConnectionFactoryManager
private void initConnectionFactoryManager(ConnectionFactoryManager cfm)
Initializes the supplied connection factory manager using the properties in this property source.- Parameters:
cfm
- to initialize
-
-