org.ldaptive
Class AbstractConfig

java.lang.Object
  extended by org.ldaptive.AbstractConfig
Direct Known Subclasses:
ConnectionConfig, PoolConfig, ProviderConfig, SaslConfig, SocketConfig, SslConfig

public abstract class AbstractConfig
extends Object

Provides common implementations for configuration objects.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Field Summary
protected  org.slf4j.Logger logger
          Logger for this class.
 
Constructor Summary
AbstractConfig()
           
 
Method Summary
 void checkImmutable()
          Verifies if this config is immutable.
protected  void checkStringInput(String s, boolean allowNull)
          Verifies that a string is not null or empty.
 void makeImmutable()
          Make this config immutable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.slf4j.Logger logger
Logger for this class.

Constructor Detail

AbstractConfig

public AbstractConfig()
Method Detail

makeImmutable

public void makeImmutable()
Make this config immutable.


checkImmutable

public void checkImmutable()
Verifies if this config is immutable.

Throws:
IllegalStateException - if this config is immutable

checkStringInput

protected void checkStringInput(String s,
                                boolean allowNull)
Verifies that a string is not null or empty.

Parameters:
s - to verify
allowNull - whether null strings are valid
Throws:
IllegalArgumentException - if the string is null or empty


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.