public class AutowiredResourceInjector
extends org.axonframework.eventhandling.saga.AbstractResourceInjector
@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.
| Constructor and Description |
|---|
AutowiredResourceInjector(Iterable<?> resources)
Initializes the resource injector to inject to given
resources. |
| Modifier and Type | Method and Description |
|---|---|
protected <R> Optional<R> |
findResource(Class<R> requiredType) |
public AutowiredResourceInjector(Iterable<?> resources)
resources.resources - The resources to injectCopyright © 2010–2018. All rights reserved.