Class EASyPersistencer
java.lang.Object
net.ssehub.easy.producer.core.persistence.EASyPersistencer
net.ssehub.easy.producer.eclipse.persistency.EASyPersistencer
- All Implemented Interfaces:
net.ssehub.easy.producer.core.persistence.standard.PersistenceConstants
public class EASyPersistencer
extends net.ssehub.easy.producer.core.persistence.EASyPersistencer
Abstraction Layer for saving/reading persistent EASy-Producer information.
- Author:
- El-Sharkawy
-
Field Summary
Fields inherited from interface net.ssehub.easy.producer.core.persistence.standard.PersistenceConstants
CONFIG_FILE, EASY_FILES_DEFAULT, INSTANTIATOR_ENGINE, INSTANTIATOR_FILE, INSTANTIATOR_INHERITED, INSTANTIATOR_PATH_REGEX, INSTANTIATOR_PATHS, INSTANTIATOR_UUID, PLP_LOCATION, PLP_VERSION, PRESUCCESSOR_LOCATION, PRESUCCESSOR_MEMEBERNAME, PRESUCCESSOR_UUID, PRESUCCESSOR_VERSION, PTN_PROJECTNAME, PTN_SKIP, PTN_UUID, REASONER_ATTRIBUTE, REASONER_TIMEOUT, REASONER_VALUE_SEPARATOR, REASONER_VALUES, SETTINGS_DEBUG -
Constructor Summary
ConstructorsConstructorDescriptionEASyPersistencer(File projectFolder) Creates a specialized EASy persistencer without underlying project.EASyPersistencer(File projectFolder, EclipseProgressObserver obs, org.eclipse.core.resources.IProject project) Creates a specialized EASy persistencer. -
Method Summary
Modifier and TypeMethodDescriptionprotected ProductLineProjectcreatePLP(String projectID, String projectName, net.ssehub.easy.producer.core.varMod.container.ProjectContainer project, File projectLocation, net.ssehub.easy.producer.core.varMod.container.ScriptContainer mainBuildScript) populateEasyProject(String projectID, String projectName, File projectFolder, net.ssehub.easy.varModel.model.Project ivmlModel) static voidrefreshModels(net.ssehub.easy.producer.core.mgmt.PLPInfo plp) (Re-)Loads all variability models of the specifiedProductLineProjectfrom the file system.Methods inherited from class net.ssehub.easy.producer.core.persistence.EASyPersistencer
createProject, getEasyConfigFile, getPathEnvironment, getProjectFolder, getProjectID, load, populateEasyProject, projectPath, refreshConfiguration, save
-
Constructor Details
-
EASyPersistencer
Creates a specialized EASy persistencer without underlying project.- Parameters:
projectFolder- The location of theProductLineProject.
-
EASyPersistencer
public EASyPersistencer(File projectFolder, EclipseProgressObserver obs, org.eclipse.core.resources.IProject project) Creates a specialized EASy persistencer.- Parameters:
projectFolder- The location of theProductLineProject.obs- progress observer, may beProgressObserver.NO_OBSERVERproject- the project instance to return a persistencer for, may be null then a default one may be obtained
-
-
Method Details
-
createPLP
protected ProductLineProject createPLP(String projectID, String projectName, net.ssehub.easy.producer.core.varMod.container.ProjectContainer project, File projectLocation, net.ssehub.easy.producer.core.varMod.container.ScriptContainer mainBuildScript) - Overrides:
createPLPin classnet.ssehub.easy.producer.core.persistence.EASyPersistencer
-
refreshModels
public static void refreshModels(net.ssehub.easy.producer.core.mgmt.PLPInfo plp) (Re-)Loads all variability models of the specifiedProductLineProjectfrom the file system.- Parameters:
plp- AProductLineProjectcontaining saved models which should be (re-) loaded from the file system
-
populateEasyProject
public ProductLineProject populateEasyProject(String projectID, String projectName, File projectFolder, net.ssehub.easy.varModel.model.Project ivmlModel) - Overrides:
populateEasyProjectin classnet.ssehub.easy.producer.core.persistence.EASyPersistencer
-