Package ru.ewc.decita
Class Locators
java.lang.Object
ru.ewc.decita.Locators
I am the collection of
Locator
s used to populate the ComputationContext
s. My main
responsibility is to keep track of the Locator
s, merge them together and provide the
merged result.- Since:
- 0.3.1
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlocatorFor
(String locator) Returns a concreteLocator
if it's found in an instance storage.mergedWith
(Locators additional) names()
-
Field Details
-
CONSTANT
The constantLocator
that can be used in theComputationContext
. -
EMPTY
The empty set of predefinedLocator
s that should be used to get data from a system.
-
-
Constructor Details
-
Locators
Ctor.- Parameters:
collection
- TheLocator
s to be managed by this instance.
-
-
Method Details
-
locatorFor
Returns a concreteLocator
if it's found in an instance storage.- Parameters:
locator
- The String identifier of the requiredLocator
.- Returns:
- The instance of
Locator
. - Throws:
DecitaException
- If the specifiedLocator
is missing.
-
mergedWith
-
names
-