Class PersistencerFactory
java.lang.Object
net.ssehub.easy.producer.eclipse.persistency.PersistencerFactory
This class returns a correct
IPersistencer instance as it is needed by the EASyPersistencer.
- In case of a complete Eclipse Instance is running, the
EclipsePersistenceris returned, which loads projects inside of the workspace. - In case EASy is ran outside of Eclipse, e.g. as a command line tool, the normal
Persistencerwill be returned.
- Author:
- El-Sharkawy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.ssehub.easy.producer.core.persistence.datatypes.IPersistencergetPersistencer(File projectFolder, EclipseProgressObserver obs, org.eclipse.core.resources.IProject project) Creates anIPersistencerinstance.
-
Constructor Details
-
PersistencerFactory
public PersistencerFactory()
-
-
Method Details
-
getPersistencer
public static net.ssehub.easy.producer.core.persistence.datatypes.IPersistencer getPersistencer(File projectFolder, EclipseProgressObserver obs, org.eclipse.core.resources.IProject project) Creates anIPersistencerinstance.- Parameters:
projectFolder- The toplevel folder of the complete project.obs- progress observerproject- the project instance to return a persistencer for, may be null then a default one may be obtained- Returns:
- An
IPersistencerdepending on whether Eclipse is running or not.
-