Class PersistencerFactory
- java.lang.Object
-
- net.ssehub.easy.producer.eclipse.persistency.PersistencerFactory
-
public class PersistencerFactory extends java.lang.ObjectThis class returns a correctIPersistencerinstance as it is needed by theEASyPersistencer.- 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
- In case of a complete Eclipse Instance is running, the
-
-
Constructor Summary
Constructors Constructor Description PersistencerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IPersistencergetPersistencer(java.io.File projectFolder)Creates anIPersistencerinstance.
-
-
-
Method Detail
-
getPersistencer
public static IPersistencer getPersistencer(java.io.File projectFolder)
Creates anIPersistencerinstance.- Parameters:
projectFolder- The toplevel folder of the complete project.- Returns:
- An
IPersistencerdepending on whether Eclipse is running or not.
-
-