Thanks everyone for the discussion.   I see people are very zealous
about their particular approaches.  Don't need to preach to me, just
looking for technical answers.

On Dec 31 2009, 3:53 pm, Eelco Hillenius <[email protected]>
wrote:
> > I have no problem with annotations in general.  Here are my concerns:
> > - don't want code to depend on guice; jsr would be better here, for
> > the @Inject; but this issue is minor compared to the others
>
> They are annotations, not interfaces.

My concern still stands.

> > - 3rd party code (or any code which I can't or shouldn't touch), can't
> > be annotated; I see there's ways around this with @Provider; seems a
> > bit verbose though.
>
> Verbose compared to what? XML? I find @Provider methods very compact
> for what they do.

Verbose compared to direct injection.  If you've read what I have
already written, I wouldn't even consider xml.

>
> > - don't want interfaces coupled to implementations (referring to some
> > of the apparently optional annotations which I wouldn't use)
>
> You couple it to a default, which you can override in your modules.
> That means that you can avoid a lot of configuration when part of your
> infrastructure runs fine with defaults. Great future, but still
> something that people seem to misinterpret.

And that's something I don't want to do.  I'm not misinterpreting it,
I understand it very well.

> > - don't want to comingle implementation with configuration; so, rather
> > have definition of wirings be in a Module, than as metadata
> > (annotations or whatever) directly in an implementation class
> > Yeah, I don't want xml either.  :)  I want Java code, I just want a
> > clear separation of configuration.
>
> Which Guice is perfectly capable of.

That's good news.  Will play around with guice a little more.

> I found that - besides the WIKI -
> browsing through unit tests was a good way to get an idea of what
> Guice can do and how.

Thanks and regards,
Jim

--

You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.


Reply via email to