Package net.officefloor.model.repository
Interface ModelRepository
- All Known Implementing Classes:
ModelRepositoryImpl
public interface ModelRepository
Repository to the
Model instances.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionvoidretrieve(Object model, ConfigurationItem configuration) Configures theModelfrom theConfigurationItem.voidstore(Object model, WritableConfigurationItem configuration) Stores theModelwithin theWritableConfigurationItem.
-
Method Details
-
retrieve
Configures theModelfrom theConfigurationItem.- Parameters:
model-Modelto be configured.configuration-ConfigurationItemcontaining configuration of theModel.- Throws:
IOException- If fails to configure theModel.
-
store
Stores theModelwithin theWritableConfigurationItem.- Parameters:
model-Modelto be stored.configuration-WritableConfigurationItemto contain theModel.- Throws:
IOException- If fails to store theModel.
-