org.axonframework.test.utils
Class AutowiredResourceInjector

java.lang.Object
  extended by org.axonframework.test.utils.AutowiredResourceInjector
All Implemented Interfaces:
org.axonframework.saga.ResourceInjector

public class AutowiredResourceInjector
extends Object
implements org.axonframework.saga.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

Constructor Summary
AutowiredResourceInjector(Iterable<?> resources)
          Initializes the resource injector to inject to given resources.
 
Method Summary
 void injectResources(org.axonframework.saga.Saga saga)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutowiredResourceInjector

public AutowiredResourceInjector(Iterable<?> resources)
Initializes the resource injector to inject to given resources.

Parameters:
resources - The resources to inject
Method Detail

injectResources

public void injectResources(org.axonframework.saga.Saga saga)
Specified by:
injectResources in interface org.axonframework.saga.ResourceInjector


Copyright © 2010-2016. All Rights Reserved.