com.mycila.testing.plugin.guice
Annotation Type ModuleProvider


@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 ...;
 }
 

Author:
Mathieu Carbou (mathieu.carbou@gmail.com)



Copyright © 2008-2011 Mycila. All Rights Reserved.