@Retention(value=RUNTIME) @Target(value=TYPE) public @interface GinModules
@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" />
Modifier and Type | Required Element and Description |
---|---|
Class<? extends GinModule>[] |
value |
Modifier and Type | Optional Element and Description |
---|---|
String[] |
properties |
Copyright © 2008–2018. All rights reserved.