close処理を実装

This commit is contained in:
r-ca 2024-01-08 15:11:54 +09:00
parent 080e86d05d
commit 099d900ffd
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -161,6 +161,15 @@ public class DocumentProcessorImpl implements DocumentProcessor{
@Override @Override
public void close() { public void close() {
logger.debug("close", "called");
// TODO-rca: ここでxmlファイルを保存する
try {
this.fileManager.saveDocument(xmlMetaParser.serialize(xmlMetaModel), "meta.xml");
logger.debug("close", "meta.xml saved");
} catch (Exception e) {
logger.error("close", "meta.xml save failed");
logger.trace("close", e.getMessage());
}
logger.info("close", "finished");
} }
} }