Class SmartCache
java.lang.Object
org.uitnet.testing.smartfwk.ui.core.cache.SmartCache
- Direct Known Subclasses:
DefaultSmartCache
public abstract class SmartCache extends Object
Abstract SmartCache class that can be used to store the data and can be retrieved at any time.
Also you can use events to inform subscriber for the change of cached data.
NOTE: To use this cache, create a singleton class that extends this cache or you can use the
default implementation DefaultSmartCache.
- Author:
- Madhav Krishna
-
Constructor Summary
Constructors Constructor Description SmartCache() -
Method Summary
Modifier and Type Method Description <V> voidadd(String key, V value)<V> Vget(String key)AbstractAppConnectorgetAppConnector()SmartAppDrivergetAppDriver()Set<String>getKeysEndsWith(String endsWithStr)Set<String>getKeysStartsWith(String startsWithStr)io.cucumber.java.ScenariogetRunningScenario()booleanisKeyPresent(String key)voidpublish(SmartCache cache)<V> VremoveAndget(String key)voidsetAppConnector(AbstractAppConnector appConnector)voidsetAppDriver(SmartAppDriver appDriver)voidsetRunningScenario(io.cucumber.java.Scenario runningScenario)voidsubscribe(SmartCacheSubscriber subscriber)
-
Constructor Details
-
SmartCache
public SmartCache()
-
-
Method Details
-
add
-
get
-
removeAndget
-
getKeysStartsWith
-
getKeysEndsWith
-
isKeyPresent
-
subscribe
-
publish
-
getAppConnector
-
setAppConnector
-
getAppDriver
-
setAppDriver
-
getRunningScenario
public io.cucumber.java.Scenario getRunningScenario() -
setRunningScenario
public void setRunningScenario(io.cucumber.java.Scenario runningScenario)
-