Open GoogleCodeExporter opened 8 years ago
For what it's worth, Guice supports this also.
http://code.google.com/p/google-guice/wiki/CustomInjections
Original comment by limpbizkit
on 17 Jun 2009 at 7:45
It does, but not in an automatic way. As the linked page states, you need to
create
a TypeListener and a MembersInjector. For example, I was talking about having
dependencies injected automatically in DatabaseTransactionLog just by calling
bind
(TransactionLog.class).to(DatabaseTransactionLog.class), not needing any
additional
code.
Original comment by thiag...@gmail.com
on 17 Jun 2009 at 12:32
Is a language for .bind(..).to(..) in this JSR ?
Original comment by PaulHamm...@gmail.com
on 17 Jun 2009 at 1:29
I guess so, as this JSR was expanded to have a configuration API.
From the JSR page:
"This JSR will standardize:
* A set of annotations for use on injectable classes
* A typesafe, user-friendly injector configuration API that provides an
integration
point for higher level dependency injection configuration approaches
Original comment by thiag...@gmail.com
on 17 Jun 2009 at 6:50
Something I'd not spotted in the draft. Thanks for pointing it out.
Original comment by PaulHamm...@gmail.com
on 17 Jun 2009 at 11:39
This is probably fodder for part #2 of the spec, i.e not necessarily pertinent
to the
annotations section, perhaps with the exception of the wording of @Inject which
may
have to ensure that it does not preclude annotationless injection ...
Original comment by Larry.Ca...@gmail.com
on 24 Jun 2009 at 12:29
I'm currently using Tapestry 5 and noticed, it's @Inject or other annotations
are not yet JSR-330. Is there any progress on this issue?
Original comment by werner.k...@gmail.com
on 19 Aug 2010 at 4:41
There's a JIRA for that, but no work was done. Annotations are mostly used for
injections in classes controlled by Tapestry (pages, components, mixins), not
beans (services), which mostly use injection by constructor without annotations.
Original comment by thiag...@gmail.com
on 19 Aug 2010 at 5:24
Original issue reported on code.google.com by
thiag...@gmail.com
on 17 Jun 2009 at 12:46