[forge-issues] [JBoss JIRA] (FORGE-564) Allow multiple @Alias for a plugin
George Gastaldi (JIRA)
jira-events at lists.jboss.org
Tue May 8 21:31:17 EDT 2012
[ https://issues.jboss.org/browse/FORGE-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12691188#comment-12691188 ]
George Gastaldi edited comment on FORGE-564 at 5/8/12 9:31 PM:
---------------------------------------------------------------
Or we could follow the same principle the guys in Hibernate Validation take: create a @List inside @Alias containing an
array of @Alias.
Anyway, taking this approach would enable the creation of an @Alias for each locale for example. That would rock :)
was (Author: gastaldi):
Or we could follow the same principle the guys in
Hibernate Validation takes: create a @List inside @Alias containing an
array of @Alias.
Anyway, taking this approach would enable the creation of an @Alias
for each locale. That would rock :)
> Allow multiple @Alias for a plugin
> ----------------------------------
>
> Key: FORGE-564
> URL: https://issues.jboss.org/browse/FORGE-564
> Project: Forge
> Issue Type: Enhancement
> Reporter: George Gastaldi
> Labels: Starter
>
> A plugin could have multiple alias. For example, the Help plugin could be invoked by "help" or "?".
> This issue has two possible solutions :
> # Changing the @Alias value() method to return a String[] or
> # As Dan Allen suggested, introduce an @Aliases annotation that accepts a collection of @Alias annotations. this reads nicer and leaves the door open for per-alias customizations if we should need them.
> The second approach looks nicer.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the forge-issues
mailing list