Created
September 23, 2014 21:37
-
-
Save fzakaria/67f4cc7b36a97627b28c to your computer and use it in GitHub Desktop.
Something like this
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//You'd create this helper AuthoratativePropertilesFileAccessor that would wire in | |
// SqlitePropertiesAccessor. Once it's proven that the test is valid we can simply | |
// delete this class and wire in immediately SqlitePropertiesAccessor | |
public AuthoratativePropertilesFileAccessor implements PropertiesFileAccessor { | |
private final PropertiesFileAccessor authoriative; | |
private final PropertiesFileAccessor test; | |
public String getProperty(String key) { | |
String valueAuth = authorative.getProperty(key); | |
String valueTest = authoritative.getProperty(key); | |
emitEventIfNotEqual(valueAuth,valueTest); | |
return valueAuth; | |
} | |
} | |
public SqlitePropertiesAccessor implements PropertiesFileAccessor { | |
// | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment