IMO for the use case of selecting a "main method" to run, I prefer the qualifier
option, as that seems to fit best with JSR-299 model.
But I'm not sure we've found the best approach yet...
On 17 Nov 2009, at 22:25, Gavin King wrote:
Great work on this, Peter, it's really nice.
I think we should let you specify an event type to raise:
or, perhaps, an event qualifier to be applied to the ContainerInitialized event:
that way, you have a mechanism for choosing between "main methods".
Alternatively, we could use something EL-ish to specify a method to call:
Hrm, perhaps that's the best option. Maybe my idea of using an event
wasn't so great after all.
weld-dev mailing list