pl.edu.agh.cast.data.persistence
Interface IPersistenceProviderFactory

All Known Implementing Classes:
AbstractPersistenceProviderFactory, RuntimePersistenceProviderFactory, SerializationPersistenceProviderFactory, ZLayerPersistenceProviderFactory

public interface IPersistenceProviderFactory

Interface of persistence provider factory.

Author:
AGH CAST Team
See Also:
IPersistenceProvider

Method Summary
 IPersistenceProvider createPersistenceProvider(String filePath)
          Creates a new instance of persistence provider.
 String getPersistenceFilePath()
          Returns the path to the persistence provider configuration or storage file.
 String getProviderId()
          Returns the ID of the provider.
 

Method Detail

getProviderId

String getProviderId()
Returns the ID of the provider.

Returns:
provider ID

createPersistenceProvider

IPersistenceProvider createPersistenceProvider(String filePath)
                                               throws PersistenceException
Creates a new instance of persistence provider.

Parameters:
filePath - the path to configuration/storage file for the provider
Returns:
a new instance of persistence provider
Throws:
PersistenceException - if provider could not be created

getPersistenceFilePath

String getPersistenceFilePath()
Returns the path to the persistence provider configuration or storage file. The path is relative to the project path.

Returns:
the path to the persistence file


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.