|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Retention(value=RUNTIME) @Target(value=METHOD) @Inherited @Documented public @interface ModuleProvider
Specify a method that provides Guice module instances. If a module needs to be instanciated with a specific logic, you can add methods that provide Modules. Supported method return type is any type extending: Module, Module[] and Iterable<Module>. Example:
Module[] buildModules() {
return ...;
}
Module buildModule() {
return ...;
}
List<Module> moduleList() {
return ...;
}
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||