[
http://www.stripesframework.org/jira/browse/STS-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11535#action_11535
]
Chris Herron commented on STS-614:
----------------------------------
Sorry if we're hijacking the comments for Spring-specific discussion, but to
respond to John: I don't think that @SpringBean and its infrastructure should
be eliminated. Reasons:
* Not breaking existing code that relies upon it
* Having public getters/setters on ActionBeans for Spring dependencies is a bit
of a security risk when exposed to Stripes binding. @SpringBean allows Spring
dependencies to be injected into private fields.
About declaring all that stuff in XML: For a typical project, I think it would
get really tedious to have to explicitly declare lots of Stripes components in
XML. Not very Stripey! I have a SpringObjectFactory that dynamically registers
ActionBeans as Spring Beans with prototype scope. My thinking is that
dependencies would be satisfied either by Spring's @Autowired, or by Stripes'
@SpringBean if security is a concern. As far as I've heard, lot of the interest
in a Spring or Guice ObjectFactory implementation is less for the
dependency-injection support and more for the cross-cutting concerns like
security and transactions. Doing it dynamically avoids having to coordinate
Spring bean-naming and still supports the injection of other XML-defined beans
as well as Autowired stuff.
> Ability to specify "ObjectFactory" for beans created during binding
> -------------------------------------------------------------------
>
> Key: STS-614
> URL: http://www.stripesframework.org/jira/browse/STS-614
> Project: Stripes
> Issue Type: New Feature
> Affects Versions: Release 1.5
> Reporter: Patrick Lightbody
> Assignee: Ben Gunter
> Fix For: Release 1.5.1
>
> Attachments: obj_fact.patch, object_factory_v2.patch
>
>
> See patch.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development