use of com.developmentontheedge.be5.metadata.model.BeConnectionProfiles in project be5 by DevelopmentOnTheEdge.
the class Serialization method reloadConnectionProfiles.
public static BeConnectionProfiles reloadConnectionProfiles(final Path file, final BeConnectionProfileType type, final BeConnectionProfilesRoot target) throws ReadException {
checkProject(target.getProject());
turnOffAutomaticSerialization();
try {
return new YamlDeserializer(new LoadContext()).reloadConnectionProfiles(file, type, target);
} finally {
turnOnAutomaticSerialization();
}
}
use of com.developmentontheedge.be5.metadata.model.BeConnectionProfiles in project be5 by DevelopmentOnTheEdge.
the class YamlDeserializer method readConnectionProfiles.
private void readConnectionProfiles(BeConnectionProfileType type, BeConnectionProfilesRoot target) throws ReadException {
Path connectionProfilesFile = getFileSystem().getConnectionProfilesFile(type);
if (target.getProject().isModuleProject() && !Files.exists(connectionProfilesFile))
return;
if (type == BeConnectionProfileType.LOCAL && !Files.exists(connectionProfilesFile)) {
target.put(new BeConnectionProfiles(BeConnectionProfileType.LOCAL, target));
return;
}
new ConnectionProfilesDeserializer(connectionProfilesFile, type, target).deserialize();
}
use of com.developmentontheedge.be5.metadata.model.BeConnectionProfiles in project be5 by DevelopmentOnTheEdge.
the class YamlSerializer method serialize.
public void serialize(final BeConnectionProfiles connectionProfiles) throws WriteException {
this.fileSystem = new ProjectFileSystem(connectionProfiles.getProject());
new ConnectionProfilesSerializer().serialize(connectionProfiles.getType(), connectionProfiles);
}
Aggregations