rlalfo / google-http-java-client

Automatically exported from code.google.com/p/google-http-java-client
0 stars 0 forks source link

Arbitrary DataStore based on String key and Serializable value #216

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Let's add an abstract Store interface modeled after 
com.google.api.client.googleapis.subscriptions.SubscriptionStore and 
com.google.api.client.auth.oauth2.CredentialStore that stores arbitrary data 
based on a String key and a Serializable Object value.  We should then provide 
thread safe implementations MemoryStore, JdoStore, and AppEngineStore.

This would reduce the amount of duplicate code between the implementations of 
CredentialStore and SubscriptionStore, which also reduces development, testing, 
and documentation effort.  There are also a lot of bugs and missing features in 
the current implementations and design of JdoCredentialStore and 
AppEngineCredentialStore, so now is a good opportunity to redesign it.  It 
would also enable us to add additional fields in the future without having to 
change the implementations.

Original issue reported on code.google.com by yan...@google.com on 20 Apr 2013 at 1:42

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 22 Apr 2013 at 9:27

GoogleCodeExporter commented 9 years ago
https://codereview.appspot.com/9029044/

Original comment by yan...@google.com on 19 Jun 2013 at 12:23