Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] Annotations vs Events and when should we extend them ?

On Thu, Nov 8, 2012 at 7:28 AM, Tom Schindl <tom.schindl@xxxxxxxxxxxxxxx> wrote:

An advantage to the @Invoke is that the they'd work similar to
@EventTopic given we have the event:

"MenuRendered"

the event code would look like this:
@Inject
public void rendered(@UIEventTopic("MenuRendered") Menu menu) {
}


and the tightly scoped lifecycle:
@Invoke("MenuRendered")
public void rendered(Menu menu) {
}


Or just use @MenuRendered and then we avoid adding a second way to do the same thing (invoke a method).

PW


--
Paul Webster
Hi floor.  Make me a sammich! - GIR

Back to the top