Package net.officefloor.model.repository
Interface ModelRepository
-
- All Known Implementing Classes:
ModelRepositoryImpl
public interface ModelRepositoryRepository to theModelinstances.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidretrieve(java.lang.Object model, ConfigurationItem configuration)Configures theModelfrom theConfigurationItem.voidstore(java.lang.Object model, WritableConfigurationItem configuration)Stores theModelwithin theWritableConfigurationItem.
-
-
-
Method Detail
-
retrieve
void retrieve(java.lang.Object model, ConfigurationItem configuration) throws java.io.IOExceptionConfigures theModelfrom theConfigurationItem.- Parameters:
model-Modelto be configured.configuration-ConfigurationItemcontaining configuration of theModel.- Throws:
java.io.IOException- If fails to configure theModel.
-
store
void store(java.lang.Object model, WritableConfigurationItem configuration) throws java.io.IOExceptionStores theModelwithin theWritableConfigurationItem.- Parameters:
model-Modelto be stored.configuration-WritableConfigurationItemto contain theModel.- Throws:
java.io.IOException- If fails to store theModel.
-
-