本文整理了Java中org.geoserver.config.util.XStreamServiceLoader.save()
方法的一些代码示例,展示了XStreamServiceLoader.save()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XStreamServiceLoader.save()
方法的具体详情如下:
包路径:org.geoserver.config.util.XStreamServiceLoader
类名称:XStreamServiceLoader
方法名:save
暂无
代码示例来源:origin: geoserver/geoserver
public void handlePostServiceChange(ServiceInfo service) {
XStreamServiceLoader loader = findServiceLoader(service);
try {
// TODO: handle workspace move, factor this class out into
// separate persister class
Resource directory =
service.getWorkspace() != null ? dir(service.getWorkspace()) : null;
loader.save(service, geoServer, directory);
} catch (Throwable t) {
throw new RuntimeException(t);
// LOGGER.log(Level.SEVERE, "Error occurred while saving configuration", t);
}
}
代码示例来源:origin: org.geoserver/restconfig
original = serviceLoader.load(geoServer, workspaceDir);
OwsUtils.copy(object, original, clazz);
serviceLoader.save(original, geoServer, workspaceDir);
} else {
ServiceInfo serviceInfo = (ServiceInfo) object;
original = serviceLoader.load(geoServer, root);
OwsUtils.copy(object, original, clazz);
serviceLoader.save(original, geoServer, root);
内容来源于网络,如有侵权,请联系作者删除!