ExportOverlay does not work if overlay type is interface

58 views
Skip to first unread message

Tomislav Haramustek

unread,
Sep 6, 2012, 8:35:24 AM9/6/12
to gwtex...@googlegroups.com
I have following problem.

I'm trying to export the HandlerRegistration interface. Since it is GWT's internal interface, it can be exported only by using ExportOverlay.

I have class looks like this:
@Export
@ExportPackage("_internal")
public class JsHandlerRegistration implements ExportOverlay<HandlerRegistration> {

@Export
public JsHandlerRegistration() {

}

public void removeHandler() {

}
}

In the beginning it was just removeHandler(){} there. But, then, after going through various comments made on gwt-exporter, I realized that I probably need an empty (default) constructor annotated with @Export. OK, I added that then. But, still no luck and I'm getting the following exception:
Referencing method 'com.ericsson.itk.framework.client.javascriptapi.exporters.JsHandlerRegistrationExporterImpl.___create()': unable to resolve method
And, yes, really, there is no ___create method in the generated JsHandlerRegistrationExporterImpl class.

I'm not sure if the fact that HandlerRegistration is an interface causes a problem or what. All the examples found are overlaying classes, and not interfaces. 

I'm using 2.4.0-M2-SNAPSHOT.

Thanks.

Manuel Carrasco Moñino

unread,
Sep 6, 2012, 9:56:12 AM9/6/12
to gwtex...@googlegroups.com
Yep, export-overlay is thought for classes.
This feature could be nice under certain circumstances, please fill an
issue with some code example about what you would like and edge cases.

- Manolo

Samuel Doyle

unread,
Dec 27, 2012, 5:37:09 PM12/27/12
to gwtex...@googlegroups.com
This also applies where the type is an abstract class as well so this is pretty limiting if unable to work with either abstract class or interface.
Reply all
Reply to author
Forward
0 new messages