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

Possibly find a way to separate out the advanced Binder methods #46

Closed
gissuebot opened this issue Jul 7, 2014 · 8 comments
Closed

Comments

@gissuebot
Copy link

From kevinb9n on February 28, 2007 15:40:58

I'm a little concerned about Binder, in that 90% of what newbies want to
use it for is simply binding types to classes, instances and providers.
But when they go to look at it (Binder) they're confronted with all this
stuff about interceptors and binding their own custom scopes and installing
other modules and more.  Is there anything we can do about this?

Bob and I already thought about this and came up with nothing good but I
thought it wouldn't hurt to put it here in case someone from the group at
large will give us some ideas.

Original issue: http://code.google.com/p/google-guice/issues/detail?id=46

@gissuebot
Copy link
Author

From chris.nokleberg on February 28, 2007 13:03:22

If it's really just a documentation issue you could add an AdvancedBinder interface
and make Binder extend AdvancedBinder. This might fall under the "nothing good"
category though.

@gissuebot
Copy link
Author

From kevinb9n on February 28, 2007 13:18:14

interesting javadoc hack, but yeah :-)

@gissuebot
Copy link
Author

From crazyboblee on February 28, 2007 13:23:26

Ha ha, I was just thinking the exact same thing, Chris. The user would click through
to Binder from Module and only see the relevant methods. This is similar to how
ContainerBuilder->SourceConsumer used to work.

@gissuebot
Copy link
Author

From crazyboblee on February 28, 2007 14:03:01

We could also put AdvancedBinder in the spi package.

@gissuebot
Copy link
Author

From chris.nokleberg on February 28, 2007 14:30:17

You could also leave out the interface inheritance but still have an AdvancedBinder
and just force people to cast the Binder if they need to access those methods.

@gissuebot
Copy link
Author

From crazyboblee on February 28, 2007 14:36:17

Nah, casting sucks. Kevin suggested having a Binder.advanced() method at one point.

@gissuebot
Copy link
Author

From crazyboblee on February 28, 2007 14:37:12

I don't think this is a big issue. Given the nature of the DSL, it will be easier to
learn this stuff from a users' guide than directly from the API anyway.

@gissuebot
Copy link
Author

From kevinb9n on March 12, 2007 18:14:43

I'm going to close this one.  It's not a big problem and would be hard to do anything
about now that we've released.

Status: WontFix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant