pl.edu.agh.cast.data.persistence
Class AbstractPersistenceProviderFactory

java.lang.Object
  extended by pl.edu.agh.cast.data.persistence.AbstractPersistenceProviderFactory
All Implemented Interfaces:
IPersistenceProviderFactory
Direct Known Subclasses:
RuntimePersistenceProviderFactory, SerializationPersistenceProviderFactory, ZLayerPersistenceProviderFactory

public abstract class AbstractPersistenceProviderFactory
extends Object
implements IPersistenceProviderFactory

Abstract implementation of persistence provider factory.

Author:
AGH CAST Team

Constructor Summary
protected AbstractPersistenceProviderFactory(String providerId)
          Constructor.
 
Method Summary
 String getPersistenceFilePath()
          Returns the path to the persistence provider configuration or storage file.
 String getProviderId()
          Returns the ID of the provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface pl.edu.agh.cast.data.persistence.IPersistenceProviderFactory
createPersistenceProvider
 

Constructor Detail

AbstractPersistenceProviderFactory

protected AbstractPersistenceProviderFactory(String providerId)
Constructor.

Parameters:
providerId - the ID of the provider
Method Detail

getPersistenceFilePath

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

Specified by:
getPersistenceFilePath in interface IPersistenceProviderFactory
Returns:
the path to the persistence file
See Also:
IPersistenceProviderFactory.getPersistenceFilePath()

getProviderId

public String getProviderId()
Returns the ID of the provider.

Specified by:
getProviderId in interface IPersistenceProviderFactory
Returns:
provider ID
See Also:
IPersistenceProviderFactory.getProviderId()


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