Package org.ldaptive
Class AbstractConfig
java.lang.Object
org.ldaptive.AbstractFreezable
org.ldaptive.AbstractConfig
- All Implemented Interfaces:
Freezable
- Direct Known Subclasses:
ConnectionConfig,SaslConfig,SslConfig,ThreadPoolConfig
Provides common implementations for configuration objects.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckArrayContainsNull(Object[] array) Verifies that an array does not contain a null element.protected voidcheckStringInput(String s, boolean allowNull) Verifies that a string is not null or empty.Methods inherited from class org.ldaptive.AbstractFreezable
assertMutable, freeze, freeze, freeze, isFrozen
-
Field Details
-
logger
Logger for this class.
-
-
Constructor Details
-
AbstractConfig
public AbstractConfig()
-
-
Method Details
-
checkArrayContainsNull
Verifies that an array does not contain a null element.- Parameters:
array- to verify- Throws:
IllegalArgumentException- if the array contains null
-
checkStringInput
Verifies that a string is not null or empty.- Parameters:
s- to verifyallowNull- whether null strings are valid- Throws:
IllegalArgumentException- if the string is null or empty
-