Package ru.bgcrm.util

Class Config

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Config.InitStopException
      The exception, thrown on empty configuration.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Config​(ParameterMap config)
      The constructor has to be overwritten and implement parameters parsing.
      protected Config​(ParameterMap config, boolean validate)
      The constructor has to be overwritten and implement parameters parsing.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void initWhen​(boolean criteria)
      Check, is the configuration initialized.
      protected void throwValidationException​(java.lang.String message, java.lang.Object... args)
      Throws validation exception.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        protected static final Log log
      • EMPTY

        public static final Config EMPTY
      • setup

        @Deprecated
        protected final ParameterMap setup
        Deprecated.
    • Constructor Detail

      • Config

        protected Config​(ParameterMap config)
        The constructor has to be overwritten and implement parameters parsing. Old-style constructor, without deprecated keys validation support.
        Parameters:
        config - configuration.
      • Config

        protected Config​(ParameterMap config,
                         boolean validate)
        The constructor has to be overwritten and implement parameters parsing.
        Parameters:
        config - configuration.
        validate - validation old configuration keys.
    • Method Detail

      • throwValidationException

        protected void throwValidationException​(java.lang.String message,
                                                java.lang.Object... args)
                                         throws BGMessageException
        Throws validation exception.
        Parameters:
        message -
        args -
        Throws:
        BGMessageException