@Singleton
public class IModelTypeRepo
extends java.lang.Object
| Constructor and Description |
|---|
IModelTypeRepo(java.util.Set<IModelType<?>> types,
java.util.Map<IModelType<?>,IModelFactory<?>> factories,
java.util.Map<IModelType<?>,IModelModuleConfig> configs) |
| Modifier and Type | Method and Description |
|---|---|
IModelModuleConfig |
config(IModelType<?> type) |
<T> IModel |
createModel(java.lang.String type,
T data) |
IModelFactory<?> |
factory(IModelType<?> type) |
IModelType<?> |
fromName(java.lang.String typeName)
Retrieve the model type from string
|
@Inject public IModelTypeRepo(java.util.Set<IModelType<?>> types, java.util.Map<IModelType<?>,IModelFactory<?>> factories, java.util.Map<IModelType<?>,IModelModuleConfig> configs)
public IModelType<?> fromName(java.lang.String typeName)
typeName - public IModelModuleConfig config(IModelType<?> type)
public IModelFactory<?> factory(IModelType<?> type)
public <T> IModel createModel(java.lang.String type, T data) throws UnknownOrderTypeException, NoFactoryDefException