Class Config
java.lang.Object
org.bgerp.app.cfg.Config
- Direct Known Subclasses:
BoardConfig, BoardsConfig, CalendarConfig, CallboardConfig, CallboardPlanConfig, CallboardTabelConfig, CategoryConfig, Config, Config, Config, Config, Config, Config, Config, Config, Config, Config, Config, Config, Config, Config, Config, Config, Config, Config, Config, Config, ContractTypesConfig, DayTypeConfig, DefaultMarkedProcessor.Config, GMS, IsolationConfig, LdapAuthConfig, ListParamConfig, MessageAction.Config, MessagePossibleProcessConfig, MessageTypeConfig, NumberProvider, PaidInvoiceConfig, PositionProvider, PrintQueueConfig, ProcessAction.Config, ProcessCardConfig, ProcessCreateInConfig, ProcessCreateLinkConfig, ProcessCreateLinkItem, ProcessCustomerLinkRoleConfig, ProcessDescriptionConfig, ProcessLinkCategory, ProcessLinkCategoryConfig, ProcessNotificationConfig, ProcessPriorityConfig, ProcessQueueAction.Config, ProcessTimeSetConfig, ProcessTitleConfig, ProcessTypeConfig, ProcessTypeConfig, ProcessTypeConfig, ProfileAction.Config, RecipientsConfig, RegexpCheckerConfig, RowExpressionConfig, SavedFiltersConfig, SavedPanelConfig, Sender, ShiftConfig, ShortcutConfig, TagConfig, Task, TasksConfig, TemplateConfig
Configuration, created on demand in
ConfigMap.getConfig(Class) and cached before it has changed.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe exception, thrown on empty configuration. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinitWhen(boolean criteria) Check, is the configuration initialized.protected voidthrowValidationException(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 benullwhen callingsuper.
-
Config
The constructor has to be overwritten and implement parameters parsing.- Parameters:
config- configuration, MUST benullwhen 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
-