public interface ParameterExposing
| Modifier and Type | Method and Description |
|---|---|
void |
exposeParameters(String basePath,
org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> template)
Adds the parameters of the implementing component to the template configuration.
|
void exposeParameters(String basePath, org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> template)
Adds the parameters of the implementing component to the template configuration. The component may insert default values or empty values. For the sake of this template construction, the data type of parameters values is not important. Thus, to indicate template for an integer-valued parameter, an empty string may be given.
When an application is run, every component only receives the sub configuration which is relevant to that component by convention. Consequently, each component defines its own parameters relative to an imaginary configuration root. Here, that path to that imaginary root is given by basePath . The base path is constructed by the recursive calls of components to their sub components. Thus, each component adds its imaginary root path to basePath with each call so that the leaf components add their parameters to the complete path.
basePath - The path that must be prepended to the parameter of the component.template - Copyright © 2018 JULIE Lab, Germany. All rights reserved.