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
public abstract class AbstractConfig extends AbstractFreezable
Provides common implementations for configuration objects.
-
-
Constructor Summary
Constructors Constructor Description AbstractConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
logger
protected final Logger logger
Logger for this class.
-
-
Method Detail
-
checkArrayContainsNull
protected void checkArrayContainsNull(Object[] array)
Verifies that an array does not contain a null element.- Parameters:
array- to verify- Throws:
IllegalArgumentException- if the array contains null
-
checkStringInput
protected void checkStringInput(String s, boolean allowNull)
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
-
-