@SingleJsoImpl in GWT 2.0??

531 views
Skip to first unread message

MonkeyMike

unread,
Nov 18, 2009, 3:25:36 PM11/18/09
to Google Web Toolkit
Dear GWT 2.0 developers,

I noticed the latest announcement about GWT 2.0, Milestone 2,
here...

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/15f20608f0a73b73

...and I noticed that it does not make any mention of the
@SingleJsoImpl feature, which is described here...

http://code.google.com/p/google-web-toolkit/wiki/OverlayTypes

Can we still expect this feature in GWT 2.0?


To provide a little more detail: I have been creating a GWT
Overlay Type library for Dojo's GFX library, and I have encountered
the difficulty of creating access to an overlay type without an
intermediate type. My solution, for now, is to create public access
to all of the overlay types and have a "delegate" library of types
that use the overlay types. The pur;pose of the "delegate" types are
to offer a more acceptable Java API, since they are not subclasses of
JavaScriptObject and therefore do not have the JavaScriptObject
restrictions. So, for example, where an overlay type can only provide
a "final" method, the corresponding "delegate" type can provide a non-
final method, which calls the overlay type's final method. However,
these "delegate" types are problematic because they involve a lot of
extra object creation that does not occur when using the overlay types
directly. So it seems like I can resolve some of this with the use of
@SingleJsoImpl, and I am wondering whether or not I can surely expect
this in GWT 2.0.

Chris Ramsdale

unread,
Nov 18, 2009, 3:43:09 PM11/18/09
to google-we...@googlegroups.com
The functionality that you are looking for is in 2.0. The compiler simply figures it out, so there's no need for an explicit annotation.

- Chris


--

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



MonkeyMike

unread,
Nov 18, 2009, 8:36:26 PM11/18/09
to Google Web Toolkit
That's great! Thanks for the quick reply. :)

On Nov 18, 12:43 pm, Chris Ramsdale <cramsd...@google.com> wrote:
> The functionality that you are looking for is in 2.0. The compiler simply
> figures it out, so there's no need for an explicit annotation.
>
> - Chris
>
> On Wed, Nov 18, 2009 at 3:25 PM, MonkeyMike <mikebin...@gmail.com> wrote:
> > Dear GWT 2.0 developers,
>
> >   I noticed the latest announcement about GWT 2.0, Milestone 2,
> > here...
>
> >http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
> > google-web-tool...@googlegroups.com<google-web-toolkit%2Bunsu...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages