Search in sources :

Example 1 with Daemons

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);
}
Also used : ProjectFileSystem(com.developmentontheedge.be5.metadata.serialization.ProjectFileSystem)

Example 2 with 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();
    }
}
Also used : YamlDeserializer(com.developmentontheedge.be5.metadata.serialization.yaml.YamlDeserializer)

Example 3 with Daemons

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;
}
Also used : Daemons(com.developmentontheedge.be5.metadata.model.Daemons)

Aggregations

Daemons (com.developmentontheedge.be5.metadata.model.Daemons)1 ProjectFileSystem (com.developmentontheedge.be5.metadata.serialization.ProjectFileSystem)1 YamlDeserializer (com.developmentontheedge.be5.metadata.serialization.yaml.YamlDeserializer)1