Package org.ldaptive

Class AbstractConfig

  • Direct Known Subclasses:
    ConnectionConfig, SaslConfig, SslConfig

    public abstract class AbstractConfig
    extends java.lang.Object
    Provides common implementations for configuration objects.
    Author:
    Middleware Services
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.slf4j.Logger logger
      Logger for this class.
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractConfig()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void checkArrayContainsNull​(java.lang.Object[] array)
      Verifies that an array does not contain a null element.
      void checkImmutable()
      Verifies if this config is immutable.
      protected void checkStringInput​(java.lang.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:
        java.lang.IllegalStateException - if this config is immutable
      • checkArrayContainsNull

        protected void checkArrayContainsNull​(java.lang.Object[] array)
        Verifies that an array does not contain a null element.
        Parameters:
        array - to verify
        Throws:
        java.lang.IllegalArgumentException - if the array contains null
      • checkStringInput

        protected void checkStringInput​(java.lang.String s,
                                        boolean allowNull)
        Verifies that a string is not null or empty.
        Parameters:
        s - to verify
        allowNull - whether null strings are valid
        Throws:
        java.lang.IllegalArgumentException - if the string is null or empty