doStart doesn't exist anymore, it was renamed into start
using an annotation can sometimes be cool, but in this case it will add some useless complexity
If 2 methods are tagged with OnStart annotation which one should be triggered first ? (I assume taht we can add an annotation property to define the order)
I think it's an overkill feature that can disturb users, but I could be added in parallel (user could choose the way he wants)
Seb
Le vendredi 31 mai 2013 08:08:03 UTC+2, Rajmahendra R a écrit :
Cool
I feel we can still add some more Annatations methods to make it more user friendly we can event bring @OnStart .. so no need to worry about doStart or start . we can give that to user to name the method :)
If you don't create wave handler method, the wave listened will be handled by the default method processAction(Wave)
I will rename it into processWave(Wave)
The OnWave annotation is a good idea I will implement it tonight.
Thanks
Seb
Le vendredi 31 mai 2013 06:13:08 UTC+2, Rajmahendra R a écrit :
Currently in DefaultModel
We are activation the listener to listen for Waves in initialize and we write our own method and call it inside
@Override
protected void customShowView()
What you think about having a callback method called
onWave(final Wave wave) // DefaultModel class optional method (not a abstract as such because if user dont want to listen then no need to have this method overritten.)
and inside this user can write there own implementations.
(In future if we have annotations i love to see something like )
@OnWave(listen = {MTWaves.SHOW_PAGE})
public void catchMyWaves (final Wave wave) {...}
--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes JRebirth Developers.