Package ru.bgcrm.util
Class Config
java.lang.Object
ru.bgcrm.util.Config
- Direct Known Subclasses:
BoardsConfig
,CalendarConfig
,CallboardConfig
,CallboardPlanConfig
,CallboardTabelConfig
,CategoryConfig
,CommonAvailableConfig
,Config
,Config
,Config
,Config
,Config
,Config
,Config
,Config
,Config
,Config
,Config
,Config
,Config
,Config
,Config
,ContractTypesConfig
,DayTypeConfig
,DefaultMarkedProcessor.Config
,EventProcessor
,GMS
,GroupLoadConfig
,IsolationConfig
,LdapAuthConfig
,LinkProcessCreateConfig
,ListParamConfig
,MessageAction.Config
,MessageRelatedProcessConfig
,MessageTypeConfig
,NumberProvider
,PositionProvider
,PrintQueueConfig
,ProcessAction.Config
,ProcessCardConfig
,ProcessLinkModesConfig
,ProcessNotificationConfig
,ProcessPriorityConfig
,ProcessQueueAction.Config
,ProcessReferenceConfig
,ProcessTimeSetConfig
,ProfileAction.Config
,RecipientsConfig
,RegexpCheckerConfig
,RowExpressionConfig
,SavedFiltersConfig
,SavedPanelConfig
,Sender
,ShortcutConfig
,TagConfig
,Task
,TasksConfig
,UserStateSender.Config
Configuration, created on demand in
ParameterMap.getConfig(Class)
and cached before it has changed.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The exception, thrown on empty configuration. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
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
Modifier and TypeMethodDescriptionprotected void
initWhen
(boolean criteria) Check, is the configuration initialized.protected void
throwValidationException
(String message, Object... args) Throws validation exception.
-
Field Details
-
log
-
EMPTY
-
-
Constructor Details
-
Config
The constructor has to be overwritten and implement parameters parsing. Simple constructor, without deprecated keys validation support.- Parameters:
config
- configuration, MUST benull
when callingsuper
.
-
Config
The constructor has to be overwritten and implement parameters parsing.- Parameters:
config
- configuration, MUST benull
when callingsuper
.validate
- validation old configuration keys.
-
-
Method Details
-
initWhen
Check, is the configuration initialized.- Parameters:
criteria
-- Throws:
Config.InitStopException
- if is false.
-
throwValidationException
Throws validation exception.- Parameters:
message
-args
-- Throws:
BGMessageException
-