pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Volkert <tvolk...@gmail.com>
Subject Re: using annotations for binding between XML/Java elements
Date Thu, 14 May 2009 00:53:56 GMT
> Eh...after having converted all of our tutorials and demos to use the new approach, I
haven't found it all that difficult to work with.

Not all that difficult, no, but consider:

    @Load(name="demo.wtkx") private Component content;
    @Bind private Rollup buttonsRollup;
    @Bind private Rollup listsRollup;
    @Bind private Rollup textRollup;
    @Bind private Rollup calendarsRollup;
    @Bind private Rollup navigationRollup;
    @Bind private Rollup splittersRollup;
    @Bind private Rollup menusRollup;
    @Bind private Rollup metersRollup;
    @Bind private Rollup spinnersRollup;
    @Bind private Rollup tablesRollup;
    @Bind private Rollup treesRollup;
    @Bind private Rollup dragDropRollup;
    @Bind private Rollup alertsRollup;

instead of:

    @Load(name="demo.wtkx", compile=true) private Component content;
    @Bind(property="content") private Rollup buttonsRollup;
    @Bind(property="content") private Rollup listsRollup;
    @Bind(property="content") private Rollup textRollup;
    @Bind(property="content") private Rollup calendarsRollup;
    @Bind(property="content") private Rollup navigationRollup;
    @Bind(property="content") private Rollup splittersRollup;
    @Bind(property="content") private Rollup menusRollup;
    @Bind(property="content") private Rollup metersRollup;
    @Bind(property="content") private Rollup spinnersRollup;
    @Bind(property="content") private Rollup tablesRollup;
    @Bind(property="content") private Rollup treesRollup;
    @Bind(property="content") private Rollup dragDropRollup;
    @Bind(property="content") private Rollup alertsRollup;

Looks compelling to me, and since we have precedent for saying that
the annotations will be processed linearly, it's easy to do too.

Mime
View raw message