Generator for implementations of
UiBinder
. This
is a slightly modified version of
UiBinderGenerator
that allows fields to be instantiated using gin dependency
injection. Modifications are clearly indicated by
MODIFICATION
comments.
To use this you need to use the following in your module file:
<inherits name="com.google.gwt.uibinder.GinUiBinder" />
instead of
com.google.gwt.uibinder.UiBinder
.
Then you need to identify your ginjector class in your module
by defining a
gin.gingector
configuration property. For example:
<define-configuration-property name="gin.ginjector" is-multi-valued="false" />
<set-configuration-property name="gin.ginjector" value="com.mycompany.project.client.MyGinjector" />
Finally, you need to make sure every widget that participates in dependency
injection can be created via a method of your ginjector interface.