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

x33g5p2x  于2022-01-16 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(112)

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

AbstractItem.onLoad介绍

[英]Called right after when a Item is loaded from disk. This is an opporunity to do a post load processing.
[中]从磁盘加载项后立即调用。这是一个进行加载后处理的机会。

代码示例

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

/**
 * Notify this item it's been moved to another location, replaced by newItem (might be the same object, but not guaranteed).
 * This method is executed <em>after</em> the item root directory has been moved to it's new location.
 * <p>
 * Derived classes can override this method to add some specific behavior on move, but have to call parent method
 * so the item is actually setup within it's new parent.
 *
 * @see hudson.model.Items#move(AbstractItem, jenkins.model.DirectlyModifiableTopLevelItemGroup)
 */
public void movedTo(DirectlyModifiableTopLevelItemGroup destination, AbstractItem newItem, File destDir) throws IOException {
  newItem.onLoad(destination, name);
}

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

@Override
  public Void call() throws IOException {
    onLoad(getParent(), getRootDir().getName());
    return null;
  }
});

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

@Override public Void call() throws IOException {
    onLoad(getParent(), getRootDir().getName());
    return null;
  }
});

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

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

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

/**
 * Notify this item it's been moved to another location, replaced by newItem (might be the same object, but not guaranteed).
 * This method is executed <em>after</em> the item root directory has been moved to it's new location.
 * <p>
 * Derived classes can override this method to add some specific behavior on move, but have to call parent method
 * so the item is actually setup within it's new parent.
 *
 * @see hudson.model.Items#move(AbstractItem, jenkins.model.DirectlyModifiableTopLevelItemGroup)
 */
public void movedTo(DirectlyModifiableTopLevelItemGroup destination, AbstractItem newItem, File destDir) throws IOException {
  newItem.onLoad(destination, name);
}

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

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

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

@Override
  public Void call() throws IOException {
    onLoad(getParent(), getRootDir().getName());
    return null;
  }
});

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

@Override public Void call() throws IOException {
    onLoad(getParent(), getRootDir().getName());
    return null;
  }
});

代码示例来源:origin: jenkinsci/jenkins-test-harness

@Override public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException {
  super.onLoad(parent, name);
  items = ItemGroupMixIn.loadChildren(this, jobs(), new Function1<String,TopLevelItem>() {
    public String call(TopLevelItem item) {
      return item.getName();
    }
  });
}

代码示例来源:origin: org.jenkins-ci.plugins/cloudbees-folder

super.onLoad(parent, name);
init();
final Thread t = Thread.currentThread();

代码示例来源:origin: jenkinsci/cloudbees-folder-plugin

super.onLoad(parent, name);
init();
final Thread t = Thread.currentThread();

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

public void onLoad(ItemGroup<? extends Item> parent, String name)
    throws IOException {
  super.onLoad(parent, name);
  setCascadingProject();
  TextFile f = getNextBuildNumberFile();

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

onLoad(getParent(), getRootDir().getName());

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

onLoad(getParent(), getRootDir().getName());

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

onLoad(getParent(), getRootDir().getName());

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

onLoad(getParent(), getRootDir().getName());

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

public void onLoad(ItemGroup<? extends Item> parent, String name)
    throws IOException {
  super.onLoad(parent, name);
  cascadingProject = (JobT) Functions.getItemByName(Hudson.getInstance().getAllItems(this.getClass()),
    cascadingProjectName);

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

public void onLoad(ItemGroup<? extends Item> parent, String name)
    throws IOException {
  super.onLoad(parent, name);
  cascadingProject = (JobT) Functions.getItemByName(Hudson.getInstance().getAllItems(this.getClass()),
    cascadingProjectName);

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

public void onLoad(ItemGroup<? extends Item> parent, String name)
    throws IOException {
  super.onLoad(parent, name);
  cascadingProject = (JobT) Functions.getItemByName(Hudson.getInstance().getAllItems(this.getClass()),
    cascadingProjectName);

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

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

相关文章