Class PersistencerFactory


  • public class PersistencerFactory
    extends java.lang.Object
    This class returns a correct IPersistencer instance as it is needed by the EASyPersistencer.
    • In case of a complete Eclipse Instance is running, the EclipsePersistencer is 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 Persistencer will be returned.
    Author:
    El-Sharkawy
    • Constructor Detail

      • PersistencerFactory

        public PersistencerFactory()
    • Method Detail

      • getPersistencer

        public static IPersistencer getPersistencer​(java.io.File projectFolder)
        Creates an IPersistencer instance.
        Parameters:
        projectFolder - The toplevel folder of the complete project.
        Returns:
        An IPersistencer depending on whether Eclipse is running or not.