[
http://www.stripesframework.org/jira/browse/STS-109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ben Gunter closed STS-109.
--------------------------
> A better SpringAwareActionResolver implementation
> -------------------------------------------------
>
> Key: STS-109
> URL: http://www.stripesframework.org/jira/browse/STS-109
> Project: Stripes
> Issue Type: Improvement
> Components: ActionBean Dispatching
> Reporter: Thiago Souza
> Assignee: Tim Fennell
>
> Hi,
> Instead of looking for @SpringBean annotations, the "makeNewActionBean"
> could be implemented like this:
> HttpServletRequest request = context.getRequest();
> ApplicationContext springContext =
> WebApplicationContextUtils.getWebApplicationContext(request.getSession()
> .getServletContext());
>
> Map<String, ActionBean> beanMapping =
> springContext.getBeansOfType(actionBeanClass);
>
> for (Map.Entry<String, ActionBean> entry :
> beanMapping.entrySet())
> return entry.getValue();
> The only drawback is that there should be only one ActionBean of each
> class plugged into Spring, otherwise a random instance will be picked.
> There are numerous advantages in this strategy:
> No need for @SpringBean annotation
> Take advantage of spring's AOP (i.e. annotated transaction
> management)
> Spring's bean life cycle control
> ...
> Regards,
> Thiago Souza
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development