Package org.ldaptive

Class AbstractConfig

    • Field Detail

      • logger

        protected final Logger logger
        Logger for this class.
      • immutable

        private boolean immutable
        Whether this config has been marked immutable.
    • 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.
        IllegalStateException - if this config is immutable
      • checkArrayContainsNull

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

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