Package ru.ewc.decita
Class InMemoryStorage
java.lang.Object
ru.ewc.decita.InMemoryStorage
- All Implemented Interfaces:
Locator
I am a simple in-memory key-value storage. My main responsibility is to store and return the
specified data for testing purposes.
- Since:
- 0.2
-
Field Summary
Fields inherited from interface ru.ewc.decita.Locator
CONSTANT_VALUES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfragmentBy(String fragment, ComputationContext context) Determines the system's state - the value of a single property, described by its name.
-
Constructor Details
-
InMemoryStorage
Ctor.- Parameters:
storage- The pre-filled key-value storage to start with.
-
-
Method Details
-
fragmentBy
Description copied from interface:LocatorDetermines the system's state - the value of a single property, described by its name.- Specified by:
fragmentByin interfaceLocator- Parameters:
fragment- The String identifier of the required property.context- TheComputationContextto use in property retrieval.- Returns:
- The value of the requested property as a
String.
-