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


@Retention(value=RUNTIME)
@Target(value=TYPE)
@Inherited
@Documented
public @interface GuiceContext

The GuiceContext annotation can be placed on a Test Class to specify a list of class modules to load and a stage to use for the Injector. The default stage is DEVELOPMENT.

If some modules you want to use requires some parameters to be instanciated, you can use the ModuleProvider annotation on a method to provide directly Module instances.

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

Optional Element Summary
 com.google.inject.Stage stage
           
 Class<? extends com.google.inject.Module>[] value
           
 

value

public abstract Class<? extends com.google.inject.Module>[] value
Default:
{}

stage

public abstract com.google.inject.Stage stage
Default:
com.google.inject.Stage.DEVELOPMENT


Copyright © 2008-2011 Mycila. All Rights Reserved.