hudson.model.Project.onLoad()方法的使用及代码示例

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

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

Project.onLoad介绍

暂无

代码示例

代码示例来源:origin: groupon/DotCi

@Override
public void onLoad(final ItemGroup<? extends hudson.model.Item> parent, final String name) throws IOException {
  initRepos();
  super.onLoad(parent, name);
}

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

@Override
public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException {
  // directory name is not a name for us --- it's taken from the combination name
  super.onLoad(parent, combination.toString());
}

代码示例来源:origin: org.jenkins-ci.plugins/matrix-project

@Override
public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException {
  // directory name is not a name for us --- it's taken from the combination name
  super.onLoad(parent, combination.toString());
}

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

@Override
public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException {
  // directory name is not a name for us --- it's taken from the combination name
  super.onLoad(parent, combination.toString());
}

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

@Override
public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException {
  // directory name is not a name for us --- it's taken from the combination name
  super.onLoad(parent, combination.toString());
}

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

@Override
public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException {
  // directory name is not a name for us --- it's taken from the combination name
  super.onLoad(parent, combination.toString());
}

代码示例来源:origin: i-m-c/jenkins-inheritance-plugin

/**
 * This method restores transient fields that could not be deserialized.
 * Do note that there is no guaranteed order of deserialization, so
 * don't expect other objects to be present, when this method is called.
 */
@Override
public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException {
  //Creating & clearing buffers, if necessary
  createBuffers();
  clearBuffers(null);
  
  /* We need to create a dummy version store first, as we can't get the
   * project root directory before super() is executed (as no name is
   * set yet); but that one needs a version store available to load
   * certain values reliably without a null pointer access.
   */
  this.versionStore = new VersionedObjectStore();
  
  //Then loading the elements defined in the parent
  //TODO: What to do if a transient job is attempted to be loaded?
  super.onLoad(parent, name);
  
  //Loading the correct version store
  this.versionStore = this.loadVersionedObjectStore();
  
  //And clearing the buffers again, as a new job with new props is available
  clearBuffers(null);
}

代码示例来源:origin: hudson.plugins/project-inheritance

/**
 * This method restores transient fields that could not be deserialized.
 * Do note that there is no guaranteed order of deserialization, so
 * don't expect other objects to be present, when this method is called.
 */
@Override
public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException {
  //Creating & clearing buffers, if necessary
  createBuffers();
  clearBuffers(null);
  
  /* We need to create a dummy version store first, as we can't get the
   * project root directory before super() is executed (as no name is
   * set yet); but that one needs a version store available to load
   * certain values reliably without a null pointer access.
   */
  this.versionStore = new VersionedObjectStore();
  
  //Then loading the elements defined in the parent
  //TODO: What to do if a transient job is attempted to be loaded?
  super.onLoad(parent, name);
  
  //Loading the correct version store
  this.versionStore = this.loadVersionedObjectStore();
  
  //And clearing the buffers again, as a new job with new props is available
  clearBuffers(null);
}

相关文章