hudson.Plugin.getConfigXml()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(166)

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

Plugin.getConfigXml介绍

[英]Controls the file where #load() and #save()persists data. This method can be also overriden if the plugin wants to use a custom XStream instance to persist data.
[中]控制#load()和#save()保存数据的文件。如果插件希望使用自定义XStream实例来持久化数据,也可以重写此方法。

代码示例

代码示例来源:origin: jenkinsci/jenkins

/**
 * Loads serializable fields of this instance from the persisted storage.
 *
 * <p>
 * If there was no previously persisted state, this method is no-op.
 *
 * @since 1.245
 */
protected void load() throws IOException {
  XmlFile xml = getConfigXml();
  if(xml.exists())
    xml.unmarshal(this);
}

代码示例来源:origin: jenkinsci/jenkins

/**
 * Saves serializable fields of this instance to the persisted storage.
 *
 * @since 1.245
 */
public void save() throws IOException {
  if(BulkChange.contains(this))   return;
  XmlFile config = getConfigXml();
  config.write(this);
  SaveableListener.fireOnChange(this, config);
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

/**
 * Saves serializable fields of this instance to the persisted storage.
 *
 * @since 1.245
 */
public void save() throws IOException {
  if (BulkChange.contains(this)) {
    return;
  }
  getConfigXml().write(this);
  SaveableListener.fireOnChange(this, getConfigXml());
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

/**
 * Saves serializable fields of this instance to the persisted storage.
 *
 * @since 1.245
 */
public void save() throws IOException {
  if(BulkChange.contains(this))   return;
  getConfigXml().write(this);
  SaveableListener.fireOnChange(this, getConfigXml());
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

/**
 * Saves serializable fields of this instance to the persisted storage.
 *
 * @since 1.245
 */
public void save() throws IOException {
  if(BulkChange.contains(this))   return;
  getConfigXml().write(this);
  SaveableListener.fireOnChange(this, getConfigXml());
}

代码示例来源:origin: hudson/hudson-2.x

/**
 * Saves serializable fields of this instance to the persisted storage.
 *
 * @since 1.245
 */
public void save() throws IOException {
  if(BulkChange.contains(this))   return;
  getConfigXml().write(this);
  SaveableListener.fireOnChange(this, getConfigXml());
}

代码示例来源:origin: org.jvnet.hudson.main/hudson-core

/**
 * Loads serializable fields of this instance from the persisted storage.
 *
 * <p>
 * If there was no previously persisted state, this method is no-op.
 *
 * @since 1.245
 */
protected void load() throws IOException {
  XmlFile xml = getConfigXml();
  if(xml.exists())
    xml.unmarshal(this);
}

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

/**
 * Loads serializable fields of this instance from the persisted storage.
 *
 * <p>
 * If there was no previously persisted state, this method is no-op.
 *
 * @since 1.245
 */
protected void load() throws IOException {
  XmlFile xml = getConfigXml();
  if(xml.exists())
    xml.unmarshal(this);
}

代码示例来源:origin: org.eclipse.hudson.main/hudson-core

/**
 * Loads serializable fields of this instance from the persisted storage.
 *
 * <p>
 * If there was no previously persisted state, this method is no-op.
 *
 * @since 1.245
 */
protected void load() throws IOException {
  XmlFile xml = getConfigXml();
  if(xml.exists())
    xml.unmarshal(this);
}

代码示例来源:origin: org.eclipse.hudson/hudson-core

/**
 * Loads serializable fields of this instance from the persisted storage.
 *
 * <p> If there was no previously persisted state, this method is no-op.
 *
 * @since 1.245
 */
protected void load() throws IOException {
  XmlFile xml = getConfigXml();
  if (xml.exists()) {
    xml.unmarshal(this);
  }
}

代码示例来源:origin: hudson/hudson-2.x

/**
 * Loads serializable fields of this instance from the persisted storage.
 *
 * <p>
 * If there was no previously persisted state, this method is no-op.
 *
 * @since 1.245
 */
protected void load() throws IOException {
  XmlFile xml = getConfigXml();
  if(xml.exists())
    xml.unmarshal(this);
}

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

/**
 * Saves serializable fields of this instance to the persisted storage.
 *
 * @since 1.245
 */
public void save() throws IOException {
  if(BulkChange.contains(this))   return;
  XmlFile config = getConfigXml();
  config.write(this);
  SaveableListener.fireOnChange(this, config);
}

相关文章