Package org.axonframework.test.utils
Class AutowiredResourceInjector
java.lang.Object
org.axonframework.modelling.saga.AbstractResourceInjector
org.axonframework.modelling.saga.SimpleResourceInjector
org.axonframework.test.utils.AutowiredResourceInjector
- All Implemented Interfaces:
ResourceInjector
Deprecated.
Resource injector that uses setter methods to inject resources. All methods and fields annotated with
@Inject
are evaluated. If that method has a single parameter, a Resource of that type is injected into it, if present.
Unlike the SimpleResourceInjector, changes in the provided Iterable are reflected in this injector.
- Since:
- 1.1
- Author:
- Allard Buijze
-
Constructor Summary
ConstructorsConstructorDescriptionAutowiredResourceInjector(Iterable<Object> resources) Deprecated.Initializes the resource injector to inject to givenresources. -
Method Summary
Methods inherited from class org.axonframework.modelling.saga.SimpleResourceInjector
findResourceMethods inherited from class org.axonframework.modelling.saga.AbstractResourceInjector
injectorAnnotationNames, injectResources
-
Constructor Details
-
AutowiredResourceInjector
Deprecated.Initializes the resource injector to inject to givenresources.- Parameters:
resources- the resources to inject
-
SimpleResourceInjector