Package | Description |
---|---|
js.lang |
Common types and exceptions.
|
js.log |
Logging system.
|
js.util |
Utility functions for strings, files, dynamic types manipulation, parameters validation and more.
|
Modifier and Type | Field and Description |
---|---|
private Config |
Config.parent
Parent reference, null if configuration object is root.
|
Modifier and Type | Field and Description |
---|---|
private List<Config> |
Config.children
Children list, possible empty.
|
private Stack<Config> |
ConfigBuilder.Loader.stack
Keep track of nested configuration objects.
|
Modifier and Type | Method and Description |
---|---|
Config |
ConfigBuilder.build()
Build configuration object.
|
Config |
Config.getChild(int index)
Get configuration object child by index.
|
Config |
Config.getChild(String name)
Get configuration object first child with requested name or null if there is no child with given name.
|
Config |
ConfigBuilder.Loader.getConfig()
Get configuration object loaded from XML source.
|
Config |
Config.getParent()
Get configuration object parent.
|
Config |
Config.getRoot()
Get root of the tree this configuration object is part of.
|
Modifier and Type | Method and Description |
---|---|
List<Config> |
Config.findChildren(String... name)
Find configuration object children with requested names.
|
List<Config> |
Config.getChildren()
Get configuration object children list.
|
Modifier and Type | Method and Description |
---|---|
void |
Config.addChild(Config child)
Add child configuration object.
|
void |
Configurable.config(Config config)
Configure this configurable using a given configuration object.
|
private void |
Config.print(Config config,
int indent)
Recursively print configuration object tree to standard out.
|
Modifier and Type | Method and Description |
---|---|
void |
Config.addChildren(List<Config> children)
Convenient method to add a bunch of configuration objects at once.
|
Modifier and Type | Method and Description |
---|---|
static void |
LogFactory.config(Config config)
Configure logging provider from configuration object.
|
void |
DefaultLogProvider.config(Config config) |
Modifier and Type | Method and Description |
---|---|
Config |
I18nRepository.ConfigBuilder.build() |
Constructor and Description |
---|
I18nRepository(Config config)
Create I18N repository instance and configure it.
|
Copyright © 2020. All rights reserved.