Announcement Announcement Module
Collapse
No announcement yet.
about JSR-330 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • about JSR-330

    Who can tell me, Springframework's @Component, @Repository, @Service and @Controller features which correspond to JSR-330 annotations?
    Thanks!

  • #2
    @Named is equivalent to @Component (and therefore all the stereotypes that "inherit" from @Component), and @Inject is equivalent to @Autowired.
    Here is a relevant post: http://matthiaswessendorf.wordpress....-jsr-330-part/

    Comment


    • #3
      Thank you!guznik.

      Comment


      • #4
        The SVN version of Guice supports JSR-330 annotations ("JSR-330 Integration - This documents an experimental, unreleased feature available in Guice SVN only"). Google gives the advise: "For now, stick with Guice's annotations and Provider interface." Guice 2 is a year old now and I wonder if there will be JSR-330 support in the near future. Does anyone know?

        Comment

        Working...
        X