[weld-dev] Java SE extension
Mark Struberg
struberg at yahoo.de
Wed Nov 18 05:48:42 EST 2009
> java -Devent=my.Event
> java -Daction=mybean.method
Don't you think this is going too far?
"If you have a hammer, every problem seems to be a nail." :)
There is definitely a need for eventing in the SE world, but I'd rather use args4j [1] for that very kind of problem.
Something (not really SE) which came to my mind recently: Using the JSR-299 eventing instead of their own internal eventing system in JSF might open some interesting possibilities...
LieGrue,
strub
[1] https://args4j.dev.java.net/
--- Gavin King <gavin.king at gmail.com> schrieb am Di, 17.11.2009:
> Von: Gavin King <gavin.king at gmail.com>
> Betreff: [weld-dev] Java SE extension
> An: "Weld-Dev" <weld-dev at lists.jboss.org>
> Datum: Dienstag, 17. November 2009, 23:25
> Great work on this, Peter, it's
> really nice.
>
> I think we should let you specify an event type to raise:
>
> java -Devent=my.Event
>
> or, perhaps, an event qualifier to be applied to the
> ContainerInitialized event:
>
> java -Dqualifier=my.Qualifier
>
> that way, you have a mechanism for choosing between "main
> methods".
>
> Alternatively, we could use something EL-ish to specify a
> method to call:
>
> java -Daction=mybean.method
>
> Hrm, perhaps that's the best option. Maybe my idea of using
> an event
> wasn't so great after all.
>
> WDYT?
>
> --
> Gavin King
> gavin.king at gmail.com
> http://in.relation.to/Bloggers/Gavin
> http://hibernate.org
> http://seamframework.org
> _______________________________________________
> weld-dev mailing list
> weld-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/weld-dev
>
More information about the weld-dev
mailing list