本文整理了Java中hudson.model.Item.onLoad()
方法的一些代码示例,展示了Item.onLoad()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Item.onLoad()
方法的具体详情如下:
包路径:hudson.model.Item
类名称:Item
方法名:onLoad
[英]Called right after when a Item is loaded from disk. This is an opporunity to do a post load processing.
[中]从磁盘加载项后立即调用。这是一个进行加载后处理的机会。
代码示例来源:origin: jenkinsci/jenkins
/**
* Loads a {@link Item} from a config file.
*
* @param dir
* The directory that contains the config file, not the config file itself.
*/
public static Item load(ItemGroup parent, File dir) throws IOException {
Item item = (Item)getConfigFile(dir).read();
item.onLoad(parent,dir.getName());
return item;
}
代码示例来源:origin: jenkinsci/jenkins
item.onLoad(parent, subdir.getName());
代码示例来源:origin: org.eclipse.hudson.main/hudson-core
/**
* Loads a {@link Item} from a config file.
*
* @param dir
* The directory that contains the config file, not the config file itself.
*/
public static Item load(ItemGroup parent, File dir) throws IOException {
Item item = (Item)getConfigFile(dir).read();
item.onLoad(parent,dir.getName());
return item;
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
/**
* Loads a {@link Item} from a config file.
*
* @param dir
* The directory that contains the config file, not the config file itself.
*/
public static Item load(ItemGroup parent, File dir) throws IOException {
Item item = (Item)getConfigFile(dir).read();
item.onLoad(parent,dir.getName());
return item;
}
代码示例来源:origin: org.jvnet.hudson.main/hudson-core
/**
* Loads a {@link Item} from a config file.
*
* @param dir
* The directory that contains the config file, not the config file itself.
*/
public static Item load(ItemGroup parent, File dir) throws IOException {
Item item = (Item)getConfigFile(dir).read();
item.onLoad(parent,dir.getName());
return item;
}
代码示例来源:origin: hudson/hudson-2.x
/**
* Loads a {@link Item} from a config file.
*
* @param dir
* The directory that contains the config file, not the config file itself.
*/
public static Item load(ItemGroup parent, File dir) throws IOException {
Item item = (Item)getConfigFile(dir).read();
item.onLoad(parent,dir.getName());
return item;
}
代码示例来源:origin: org.eclipse.hudson/hudson-core
/**
* Loads a {@link Item} from a config file.
* @param dir The directory that contains the config file, not the config
* file itself.
* @param loadLazy true if return a LazyTopLevelItem without actually loading;
* false to actually load the file and return a real item.
* @throws IOException
*/
public static Item load(ItemGroup parent, File dir, boolean loadLazy) throws IOException {
if (loadLazy) {
return newLazyTopLevelItem(parent, dir, null);
} else {
Item item = (Item) getConfigFile(dir).read();
item.onLoad(parent, dir.getName());
return item;
}
}
代码示例来源:origin: org.jenkins-ci.main/jenkins-core
item.onLoad(parent, subdir.getName());
内容来源于网络,如有侵权,请联系作者删除!