Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

my little proxy #202

Merged
merged 2 commits into from
Dec 18, 2013
Merged

my little proxy #202

merged 2 commits into from
Dec 18, 2013

Conversation

softprops
Copy link
Contributor

Factored proxy idea out of instrumented branch as its useful in many other context for store extensions. I put an example in the scala doc in the core module and defined proxy interfaces for {Readable,Writable,Mergeabl}Stores. I changed the names a bit from my other branch but I can update that branch after this gets reviewed.

The general idea is that there's a proxy implementation of Proxied[T] defined for each core store type T.

Combinators and other custom functionality can now create a new XXXProxy for an instance of XXX overriding only what they need. All other method calls are automatically forwarded to the proxied instance

*
* @author Doug Tangren
*/
trait Proxied[T] {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure it matters, but this could be covariant.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea. I was playing with some examples in the sbt console and that occurred to me but it didn't seem to buy me anything.

johnynek added a commit that referenced this pull request Dec 18, 2013
@johnynek johnynek merged commit 2886b0c into twitter:develop Dec 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants