New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define alias for component-scanned bean via annotation [SPR-6736] #11402
Comments
Gergő Takács commented It would be great for me too |
Stevo Slavić commented This is already supported outside of XML, albeit not with |
Hendy Irawan commented +1 for this. outside Spring MVC bean aliasing is also useful.
|
M. Justin commented Agreed that |
Bulk closing outdated, unresolved issues. Please, reopen if still relevant. |
Still relevant |
This issue is open from 2010. Spring must look into this feature request. |
I also think this is a missing feature in Spring annotations. Probably an |
Still relevant. |
+1 |
Thanks for the suggestion but, after a careful consideration, we're going to decline this. If you need to register a bean with multiple aliases, please use the |
adrian opened SPR-6736 and commented
I'm using Struts 1 with the Spring DelegatingTilesRequestProcessor plugin.
I define my actions as spring beans and would like to use
@Component
annotation and no XML configuration.My problem is that an action path must correspond to the same Spring bean id.
And I can have the same spring bean used for multiple actions.
i.e /charge/view and /charge/save should map to the same bean.
I cannot do it with
@Component
annotation alone, and would need a@Alias
or@Role
annotation.For instance something like :
Affects: 3.0 GA
Reference URL: http://forum.springsource.org/showthread.php?t=83133
16 votes, 12 watchers
The text was updated successfully, but these errors were encountered: