http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJSNI.html#calling

Notice that the reference to the exported method has been wrapped in a call
to the $entry function. This implicitly-defined function ensures that the
Java-derived method is executed with the uncaught exception handler
installed and pumps a number of other utility services. The $entry function
is reentrant-safe and should be used anywhere that GWT-derived JavaScript
may be called into from a non-GWT context.



On Sun, Apr 24, 2016 at 1:34 AM, Kirill Prazdnikov <[email protected]>
wrote:

> What is $entry ? Why not just  $wnd.myJsMethod = function(str) ... ?
>
> четверг, 21 апреля 2016 г., 9:53:57 UTC+3 пользователь Vassilis Virvilis
> написал:
>>
>>
>>     public static native void exportJSNI(MyJavaObject that) /*-{
>>         $wnd.myJsMethod = $entry(function(str) {
>>             
>> [email protected]::myJavaMethod((Ljava/lang/String;Z)(str,
>> index);
>>         });
>>
>>         //... more exports if you like
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Vassilis Virvilis

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to