Class ModelRepositoryImpl
- java.lang.Object
-
- net.officefloor.model.impl.repository.ModelRepositoryImpl
-
- All Implemented Interfaces:
ModelRepository
public class ModelRepositoryImpl extends java.lang.Object implements ModelRepository
ModelRepository
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ModelRepositoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
retrieve(java.lang.Object model, ConfigurationItem configuration)
Configures theModel
from theConfigurationItem
.void
store(java.lang.Object model, WritableConfigurationItem configuration)
Stores theModel
within theWritableConfigurationItem
.
-
-
-
Method Detail
-
retrieve
public void retrieve(java.lang.Object model, ConfigurationItem configuration) throws java.io.IOException
Description copied from interface:ModelRepository
Configures theModel
from theConfigurationItem
.- Specified by:
retrieve
in interfaceModelRepository
- Parameters:
model
-Model
to be configured.configuration
-ConfigurationItem
containing configuration of theModel
.- Throws:
java.io.IOException
- If fails to configure theModel
.
-
store
public void store(java.lang.Object model, WritableConfigurationItem configuration) throws java.io.IOException
Description copied from interface:ModelRepository
Stores theModel
within theWritableConfigurationItem
.- Specified by:
store
in interfaceModelRepository
- Parameters:
model
-Model
to be stored.configuration
-WritableConfigurationItem
to contain theModel
.- Throws:
java.io.IOException
- If fails to store theModel
.
-
-