| Package | Description |
|---|---|
| net.obvj.confectory |
The main package.
|
| net.obvj.confectory.merger |
This package contains the
ConfigurationMerger implementations, as well as
auxiliary classes. |
| net.obvj.confectory.util |
Utility classes in general.
|
| Modifier and Type | Method and Description |
|---|---|
Configuration<T> |
ConfigurationBuilder.build()
Builds the target
Configuration. |
Configuration<T> |
Configuration.merge(Configuration<T> other)
Combines this
Configuration with another one, producing a new
Configuration, with the following characteristics:
The resulting Configuration will receive all the elements from both
Configuration objects
In case of conflicting keys, the values at the highest-precedence
Configuration will be selected
The metadata of the highest-precedence Configuration (namespace and
precedence) will be applied to the new Configuration
Note: The other Configuration must be of the same type as the
current one. |
| Modifier and Type | Method and Description |
|---|---|
void |
ConfigurationContainer.add(Configuration<?> configuration)
Adds the specified
Configuration to this container. |
void |
TypeSafeConfigurationContainer.add(Configuration<T> configuration)
Adds the specified
Configuration to this container. |
Configuration<T> |
Configuration.merge(Configuration<T> other)
Combines this
Configuration with another one, producing a new
Configuration, with the following characteristics:
The resulting Configuration will receive all the elements from both
Configuration objects
In case of conflicting keys, the values at the highest-precedence
Configuration will be selected
The metadata of the highest-precedence Configuration (namespace and
precedence) will be applied to the new Configuration
Note: The other Configuration must be of the same type as the
current one. |
| Constructor and Description |
|---|
ConfigurationBuilder(Configuration<T> sourceConfiguration)
Creates a new
ConfigurationBuilder filled with the attributes of an existing
base Configuration. |
ConfigurationContainer(Configuration<?>... configs)
Builds a new
ConfigurationContainer with an arbitrary number of preset
Configuration objects to be registered. |
ConfigurationContainer(DataFetchStrategy dataFetchStrategy,
Configuration<?>... configs)
Builds a new
ConfigurationContainer with a custom DataFetchStrategy and
an arbitrary number of preset Configuration objects. |
TypeSafeConfigurationContainer(Configuration<T>... configs)
Builds a new
TypeSageConfigurationContainer with an arbitrary number of preset
Configuration objects to be registered. |
| Modifier and Type | Method and Description |
|---|---|
Configuration<T> |
AbstractConfigurationMerger.merge(Configuration<T> config1,
Configuration<T> config2) |
Configuration<T> |
ConfigurationMerger.merge(Configuration<T> config1,
Configuration<T> config2)
Combines two
Configuration objects into a new Configuration with the
following characteristics:
The resulting object will receive all the elements of the input
Configuration objects
In case of conflicting keys, the values at the highest-precedence
Configuration will be selected
The metadata of the highest-precedence Configuration (namespace and
precedence) will be applied to the new Configuration
|
| Modifier and Type | Method and Description |
|---|---|
Configuration<T> |
AbstractConfigurationMerger.merge(Configuration<T> config1,
Configuration<T> config2) |
Configuration<T> |
AbstractConfigurationMerger.merge(Configuration<T> config1,
Configuration<T> config2) |
Configuration<T> |
ConfigurationMerger.merge(Configuration<T> config1,
Configuration<T> config2)
Combines two
Configuration objects into a new Configuration with the
following characteristics:
The resulting object will receive all the elements of the input
Configuration objects
In case of conflicting keys, the values at the highest-precedence
Configuration will be selected
The metadata of the highest-precedence Configuration (namespace and
precedence) will be applied to the new Configuration
|
Configuration<T> |
ConfigurationMerger.merge(Configuration<T> config1,
Configuration<T> config2)
Combines two
Configuration objects into a new Configuration with the
following characteristics:
The resulting object will receive all the elements of the input
Configuration objects
In case of conflicting keys, the values at the highest-precedence
Configuration will be selected
The metadata of the highest-precedence Configuration (namespace and
precedence) will be applied to the new Configuration
|
| Modifier and Type | Method and Description |
|---|---|
int |
ConfigurationComparator.compare(Configuration<?> first,
Configuration<?> second)
Compares two
Configuration objects for precedence. |
int |
ConfigurationComparator.compare(Configuration<?> first,
Configuration<?> second)
Compares two
Configuration objects for precedence. |
Copyright © 2022. All rights reserved.