+1 Another great idea! <br><br>I think that Dan's suggested approach makes the most long-term sense, because we may (as he said,) want to customize the behavior of an @Alias for each name with which it is invoked.<br><br>
~Lincoln<br><br><div class="gmail_quote">On Tue, May 8, 2012 at 9:24 PM, George Gastaldi <span dir="ltr"><<a href="mailto:gegastaldi@gmail.com" target="_blank">gegastaldi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sounds good. Or we could follow the same principle the guys in<br>
Hibernate Validation takes: create a @List inside @Alias containing an<br>
array of @Alias.<br>
<br>
Anyway, taking this approach would enable the creation of an @Alias<br>
for each locale. That would rock :)<br>
<br>
Regards,<br>
<br>
George Gastaldi<br>
<br>
<br>
2012/5/8 Dan Allen <<a href="mailto:dan.j.allen@gmail.com">dan.j.allen@gmail.com</a>>:<br>
<div class="HOEnZb"><div class="h5">> brilliant. +1<br>
><br>
> It's possible to introduce an @Aliases annotation that accepts a collection<br>
> of @Alias annotations. this reads nicer and leaves the door open for<br>
> per-alias customizations if we should need them.<br>
><br>
> --<br>
> Sent from my CyanogenMod-powered<br>
> Android device, an open platform for<br>
> carriers, developers and consumers.<br>
><br>
> On May 8, 2012 2:55 PM, "George Gastaldi" <<a href="mailto:gegastaldi@gmail.com">gegastaldi@gmail.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> I was wondering if it makes sense for a plugin to have multiple alias.<br>
>> Like, for example, the help plugin could be invoked by calling "help"<br>
>> or simply "?".<br>
>><br>
>> I believe that the @Alias annotation should receive a String[]<br>
>> instead. That could be extended to other use cases as well.<br>
>><br>
>> WDYT ?<br>
>><br>
>> Regards,<br>
>><br>
>> George Gastaldi<br>
>> _______________________________________________<br>
>> forge-dev mailing list<br>
>> <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
>> <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
><br>
><br>
> _______________________________________________<br>
> forge-dev mailing list<br>
> <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
><br>
<br>
_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>"Simpler is better."<br>