use of com.developmentontheedge.be5.metadata.model.Daemons in project be5 by DevelopmentOnTheEdge.
the class YamlSerializer method serialize.
public void serialize(final Daemons daemons) throws WriteException {
this.fileSystem = new ProjectFileSystem(daemons.getProject());
new DaemonsSerializer().serialize(daemons);
}
use of com.developmentontheedge.be5.metadata.model.Daemons in project be5 by DevelopmentOnTheEdge.
the class Serialization method reloadDaemons.
public static Daemons reloadDaemons(final Path file, final Module target) throws ReadException {
checkProject(target.getProject());
turnOffAutomaticSerialization();
try {
return new YamlDeserializer(new LoadContext()).reloadDaemons(file, target);
} finally {
turnOnAutomaticSerialization();
}
}
use of com.developmentontheedge.be5.metadata.model.Daemons in project be5 by DevelopmentOnTheEdge.
the class YamlDeserializer method reloadDaemons.
public Daemons reloadDaemons(final Path path, final Module target) throws ReadException {
final Daemons daemons = new Daemons(target);
final DaemonsDeserializer deserializer = new DaemonsDeserializer(path, daemons);
deserializer.deserialize();
DataElementUtils.saveQuiet(daemons);
return daemons;
}
Aggregations