@Retention(value=CLASS)
@Target(value=FIELD)
public @interface BindValue
SingletonComponent
. Example usage:
public class FooTest{
...
@BindValue Bar boundBar = new Bar();
...
}
Here boundBar
will be accessible to the entire application for your test.