T
- The Class of the StatefulEntityCT
- The Request Context. Exactly what the Request Context is dependent on the type of the EndpointBinder.public interface Factory<T,CT>
FSMHarness
when the incoming request doesn't provide
an Id of the StatefulEntity or when the Finder
was
unable to locate the StatefulEntity.
Implementations of the Factory are responsible for creating a new instance of the
provided class based off the incoming Event and Request Context.Modifier and Type | Method and Description |
---|---|
T |
create(Class<T> clazz,
String event,
CT context)
Called to create an instance of the StatefulEntity
|
Copyright © 2016. All rights reserved.