本文整理了Java中hudson.Plugin.getConfigXml()
方法的一些代码示例,展示了Plugin.getConfigXml()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Plugin.getConfigXml()
方法的具体详情如下:
包路径:hudson.Plugin
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!