|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axonframework.saga.GenericSagaFactory
public class GenericSagaFactory
SagaFactory implementation that uses the default (no-arg) constructor on the saga to initialize. After
instantiation, its resources are injected using an optional resource
injector.
| Constructor Summary | |
|---|---|
GenericSagaFactory()
|
|
| Method Summary | ||
|---|---|---|
|
createSaga(Class<T> sagaType)
Create a new instance of a Saga of given type. |
|
void |
setResourceInjector(ResourceInjector resourceInjector)
Sets the resource injector that provides the resources needed by the Sagas created by this factory. |
|
boolean |
supports(Class<? extends Saga> sagaType)
Indicates whether or not this factory can create instances of the given sagaType. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericSagaFactory()
| Method Detail |
|---|
public <T extends Saga> T createSaga(Class<T> sagaType)
SagaFactory
createSaga in interface SagaFactoryT - The type of saga to create an instance forsagaType - The type of saga to create an instance for
public boolean supports(Class<? extends Saga> sagaType)
sagaType.
This implementation returns true for all types that have an accessible no-args constructor.
supports in interface SagaFactorysagaType - The type of Saga
true if this factory can create instance of the given sagaType,
false otherwise.public void setResourceInjector(ResourceInjector resourceInjector)
resourceInjector - The resource injector providing the necessary resources
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||