|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SagaFactory
Interface describing a mechanism that creates implementations of a Saga.
| Method Summary | ||
|---|---|---|
|
createSaga(Class<T> sagaType)
Create a new instance of a Saga of given type. |
|
boolean |
supports(Class<? extends Saga> sagaType)
Indicates whether or not this factory can create instances of the given sagaType. |
|
| Method Detail |
|---|
<T extends Saga> T createSaga(Class<T> sagaType)
T - The type of saga to create an instance forsagaType - The type of saga to create an instance for
boolean supports(Class<? extends Saga> sagaType)
sagaType.
sagaType - The type of Saga
true if this factory can create instance of the given sagaType,
false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||