public class AlexaStateModelFactory extends Object
Constructor and Description |
---|
AlexaStateModelFactory() |
Modifier and Type | Method and Description |
---|---|
static <TModel extends AlexaStateModel> |
createModel(Class<TModel> modelClass,
AlexaStateHandler handler)
Creates an instance of your POJO model classes derived from AlexaStateModel.
|
static <TModel extends AlexaStateModel> |
createModel(Class<TModel> modelClass,
AlexaStateHandler handler,
String id)
Creates an instance of your POJO model classes derived from AlexaStateModel.
|
public static <TModel extends AlexaStateModel> TModel createModel(Class<TModel> modelClass, AlexaStateHandler handler)
TModel
- The type of your POJO model derived from AlexaStateModelmodelClass
- The type of your POJO model derived from AlexaStateModelhandler
- The handler which should take care of your model when saving, loading or removing the model.public static <TModel extends AlexaStateModel> TModel createModel(Class<TModel> modelClass, AlexaStateHandler handler, String id)
TModel
- The type of your POJO model derived from AlexaStateModelmodelClass
- The type of your POJO model derived from AlexaStateModelhandler
- The handler which should take care of your model when saving, loading or removing the model.id
- The id which is used by the AlexaStateHandler when saving, loading or removing the modelCopyright © 2017. All rights reserved.