org.axonframework.test.utils
Class AutowiredResourceInjector
java.lang.Object
org.axonframework.test.utils.AutowiredResourceInjector
- All Implemented Interfaces:
- ResourceInjector
public class AutowiredResourceInjector
- extends Object
- implements ResourceInjector
Resource injector that uses setter methods to inject resources. All methods starting with "set" are evaluated. If
that method has a single parameter, a Resource of that type is injected into it, if present.
- Since:
- 1.1
- Author:
- Allard Buijze
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutowiredResourceInjector
public AutowiredResourceInjector(Iterable<?> resources)
- Initializes the resource injector to inject to given
resources
.
- Parameters:
resources
- The resources to inject
injectResources
public void injectResources(Saga saga)
- Description copied from interface:
ResourceInjector
- Inject required resources into the given
saga
.
- Specified by:
injectResources
in interface ResourceInjector
- Parameters:
saga
- The saga to inject resources into
Copyright © 2010-2016. All Rights Reserved.