Package net.officefloor.model.repository
Interface ModelRepository
-
- All Known Implementing Classes:
ModelRepositoryImpl
public interface ModelRepository
Repository to theModel
instances.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract 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
void retrieve(java.lang.Object model, ConfigurationItem configuration) throws java.io.IOException
Configures theModel
from theConfigurationItem
.- Parameters:
model
-Model
to be configured.configuration
-ConfigurationItem
containing configuration of theModel
.- Throws:
java.io.IOException
- If fails to configure theModel
.
-
store
void store(java.lang.Object model, WritableConfigurationItem configuration) throws java.io.IOException
Stores theModel
within theWritableConfigurationItem
.- Parameters:
model
-Model
to be stored.configuration
-WritableConfigurationItem
to contain theModel
.- Throws:
java.io.IOException
- If fails to store theModel
.
-
-