本文整理了Java中hudson.model.Executor.newImpersonatingProxy()
方法的一些代码示例,展示了Executor.newImpersonatingProxy()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Executor.newImpersonatingProxy()
方法的具体详情如下:
包路径:hudson.model.Executor
类名称:Executor
方法名:newImpersonatingProxy
[英]Creates a proxy object that executes the callee in the context that impersonates this executor. Useful to export an object to a remote channel.
[中]创建代理对象,该对象在模拟此执行器的上下文中执行被调用方。用于将对象导出到远程通道。
代码示例来源:origin: org.jenkins-ci.plugins/ivy
private Object writeReplace() {
// when called from remote, methods need to be executed in the
// proper Executor's context.
return Channel.current().export(IvyBuildProxy2.class, Executor.currentExecutor().newImpersonatingProxy(IvyBuildProxy2.class, this));
}
}
代码示例来源:origin: jenkinsci/maven-plugin
private Object writeReplace() {
// when called from remote, methods need to be executed in the proper Executor's context.
return Channel.current().export(MavenBuildProxy2.class,
Executor.currentExecutor().newImpersonatingProxy(MavenBuildProxy2.class,this));
}
代码示例来源:origin: org.jvnet.hudson.plugins/ivy
private Object writeReplace() {
// when called from remote, methods need to be executed in the
// proper Executor's context.
return Channel.current().export(IvyBuildProxy2.class, Executor.currentExecutor().newImpersonatingProxy(IvyBuildProxy2.class, this));
}
}
代码示例来源:origin: org.jvnet.hudson.main/maven-plugin
private Object writeReplace() {
// when called from remote, methods need to be executed in the proper Executor's context.
return Channel.current().export(MavenBuildProxy2.class,
Executor.currentExecutor().newImpersonatingProxy(MavenBuildProxy2.class,this));
}
}
代码示例来源:origin: org.hudsonci.plugins/ivy
private Object writeReplace() {
// when called from remote, methods need to be executed in the
// proper Executor's context.
return Channel.current().export(IvyBuildProxy2.class, Executor.currentExecutor().newImpersonatingProxy(IvyBuildProxy2.class, this));
}
}
内容来源于网络,如有侵权,请联系作者删除!