An annotation to put on
@Ginjector subtypes to indicate which
GinModule implementations to use. List the
GinModule classes
using the
value parameter. If you wish to specify gin module classes
from a GWT module file, list the name of the configuration properties as
string using the
properties parameter.
Example:
@GinModules(value=MyGinModule.class, properties="example.ginModules")
public interface ConfigurationModulesGinjector extends Ginjector {
// ...
}
In
MyApp.gwt.xml:
<define-configuration-property name="example.ginModules" is-multi-valued="true" />
<extend-configuration-property name="example.ginModules"
value="com.company.myapp.client.ExampleModule1" />
<extend-configuration-property name="example.ginModules"
value="com.company.myapp.client.ExampleModule2" />