Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: tiles-core
    • Labels:
      None

      Description

      JSR 250 is very important annotation to reference resoure and life cycle control, such as @Resource, @PostContruct, @PreDestroy. These annotations are very useful for view preparer. View preparer can use @Resource to reference other resource from JNDI or Spring context easily by ejection. At the same time view preparer can use @PostContruct and @PreDestroy to control preparer instance life cycle before it is a singleton. Preparer is very import for Tiles 2.0, and resource ejection is very important to make preparer more compact.
      This are my opinion, just for your reference, thanks.

        Activity

        Hide
        Jacky Chan added a comment -

        Is it a hard work? I think a new PreparerFactory or some code modification for current PreparerFactory can make it available.

        Show
        Jacky Chan added a comment - Is it a hard work? I think a new PreparerFactory or some code modification for current PreparerFactory can make it available.
        Hide
        Antonio Petrelli added a comment -

        Sorry but at the moment no one is willing to do the work. Why don't you provide a patch?

        Show
        Antonio Petrelli added a comment - Sorry but at the moment no one is willing to do the work. Why don't you provide a patch?
        Hide
        Nicolas Le Bas added a comment -

        This issue has been (indirectly) addressed by Spring in org.springframework.web.servlet.view.tiles2.SpringBeanPreparerFactory.

        I feel it's the right way to do it, using a proven IoC containers instead of designing our own all over again.

        Possibly a similar implementation could be provided for Guice.

        Show
        Nicolas Le Bas added a comment - This issue has been (indirectly) addressed by Spring in org.springframework.web.servlet.view.tiles2.SpringBeanPreparerFactory. I feel it's the right way to do it, using a proven IoC containers instead of designing our own all over again. Possibly a similar implementation could be provided for Guice.

          People

          • Assignee:
            Unassigned
            Reporter:
            Jacky Chan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development