org.geoserver.config.util.XStreamServiceLoader.save()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(168)

本文整理了Java中org.geoserver.config.util.XStreamServiceLoader.save()方法的一些代码示例,展示了XStreamServiceLoader.save()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XStreamServiceLoader.save()方法的具体详情如下:
包路径:org.geoserver.config.util.XStreamServiceLoader
类名称:XStreamServiceLoader
方法名:save

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);

相关文章