use of com.developmentontheedge.be5.metadata.serialization.yaml.YamlDeserializer 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.serialization.yaml.YamlDeserializer in project be5 by DevelopmentOnTheEdge.
the class Serialization method load.
/**
* @param root
* @param fuseTemplates whether to fuse templates into entities (useful for modules loading)
* @param loadContext
* @return
* @throws ProjectLoadException
* @see Serialization#canBeLoaded(Path)
*/
public static Project load(final Path root, final boolean fuseTemplates, final LoadContext loadContext) throws ProjectLoadException {
Objects.requireNonNull(root);
turnOffAutomaticSerialization();
try {
return new YamlDeserializer(loadContext == null ? new LoadContext() : loadContext, fuseTemplates).readProject(root);
} catch (final ReadException e) {
throw new ProjectLoadException(root, e);
} finally {
turnOnAutomaticSerialization();
}
}
use of com.developmentontheedge.be5.metadata.serialization.yaml.YamlDeserializer in project be5 by DevelopmentOnTheEdge.
the class Serialization method reloadCustomizations.
public static PageCustomizations reloadCustomizations(final Path file, final Module target) throws ReadException {
checkProject(target.getProject());
turnOffAutomaticSerialization();
try {
return new YamlDeserializer(new LoadContext()).reloadCustomizations(file, target);
} finally {
turnOnAutomaticSerialization();
}
}
Aggregations