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(a)gmail.com> schrieb am Di, 17.11.2009:
Von: Gavin King <gavin.king(a)gmail.com>
Betreff: [weld-dev] Java SE extension
An: "Weld-Dev" <weld-dev(a)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(a)gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org
_______________________________________________
weld-dev mailing list
weld-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-dev