public class ModelRegistry extends Object implements IModelRegistry
| Constructor and Description |
|---|
ModelRegistry() |
| Modifier and Type | Method and Description |
|---|---|
org.symphonyoss.s2.fugue.di.ComponentDescriptor |
getComponentDescriptor() |
IEntity |
newInstance(org.symphonyoss.s2.common.dom.json.ImmutableJsonObject jsonObject) |
IEntity |
parseOne(Reader reader) |
static org.symphonyoss.s2.common.dom.json.ImmutableJsonObject |
parseOneJsonObject(Reader reader) |
static org.symphonyoss.s2.common.dom.json.JsonValue<?,?> |
parseOneJsonValue(Reader reader) |
void |
parseStream(InputStream in,
IEntityConsumer consumer) |
IModelRegistry |
register(IModel factory) |
IModelRegistry |
register(String name,
IEntityFactory<?,?,?> factory) |
public org.symphonyoss.s2.fugue.di.ComponentDescriptor getComponentDescriptor()
getComponentDescriptor in interface org.symphonyoss.s2.fugue.di.IComponentpublic IModelRegistry register(IModel factory)
register in interface IModelRegistrypublic IModelRegistry register(String name, IEntityFactory<?,?,?> factory)
register in interface IModelRegistrypublic IEntity newInstance(org.symphonyoss.s2.common.dom.json.ImmutableJsonObject jsonObject) throws org.symphonyoss.s2.common.exception.InvalidValueException
newInstance in interface IModelRegistryorg.symphonyoss.s2.common.exception.InvalidValueExceptionpublic static org.symphonyoss.s2.common.dom.json.ImmutableJsonObject parseOneJsonObject(Reader reader) throws org.symphonyoss.s2.common.exception.InvalidValueException
org.symphonyoss.s2.common.exception.InvalidValueExceptionpublic static org.symphonyoss.s2.common.dom.json.JsonValue<?,?> parseOneJsonValue(Reader reader) throws org.symphonyoss.s2.common.exception.InvalidValueException
org.symphonyoss.s2.common.exception.InvalidValueExceptionpublic IEntity parseOne(Reader reader) throws IOException, org.symphonyoss.s2.common.exception.InvalidValueException
parseOne in interface IModelRegistryIOExceptionorg.symphonyoss.s2.common.exception.InvalidValueExceptionpublic void parseStream(InputStream in, IEntityConsumer consumer) throws org.symphonyoss.s2.common.exception.InvalidValueException, IOException
parseStream in interface IModelRegistryorg.symphonyoss.s2.common.exception.InvalidValueExceptionIOExceptionCopyright © 2018 Symphony Software Foundation. All rights reserved.