|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={FIELD,METHOD}) @Retention(value=RUNTIME) public @interface SpringBeanByType
This annotation can be used on fields or setter methods, in order to inject a bean
from a spring ApplicationContext
. Unitils looks for a bean assignable the annotated field
or setter method. If multiple beans are assignable, the most specific one is chosen. If none can be found that's
more specific than all others, an exception is thrown. An ApplicationContext
has to be configured
for this test using the SpringApplicationContext
annotation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |