|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.saga.SimpleResourceInjector
public class SimpleResourceInjector
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.
| Constructor Summary | |
|---|---|
SimpleResourceInjector(Collection<?> resources)
Initializes the resource injector to inject to given resources. |
|
SimpleResourceInjector(Object... resources)
Initializes the resource injector to inject to given resources. |
|
| Method Summary | |
|---|---|
void |
injectResources(Saga saga)
Inject required resources into the given saga. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleResourceInjector(Object... resources)
resources.
resources - The resources to injectpublic SimpleResourceInjector(Collection<?> resources)
resources.
resources - The resources to inject| Method Detail |
|---|
public void injectResources(Saga saga)
ResourceInjectorsaga.
injectResources in interface ResourceInjectorsaga - The saga to inject resources into
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||