热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

com.infradna.tool.bridge_method_injector.WithBridgeMethods.()方法的使用及代码示例

本文整理了Java中com.infradna.tool.bridge_method_injector.WithBridgeMethods.<init>()方

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

WithBridgeMethods.介绍

暂无

代码示例

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

/**
* Can be used to wait for the completion (either normal, abnormal, or cancellation) of the {@link Task}.
*


* Just like {@link #getId()}, the same object tracks various stages of the queue.
*/
@WithBridgeMethods(Future.class)
public QueueTaskFuture getFuture() { return future; }

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

/**
* This bridge method is to maintain binary compatibility with {@link TopLevelItem#getParent()}.
*/
@WithBridgeMethods(value=Jenkins.class,castRequired=true)
@Override public @Nonnull ItemGroup getParent() {
if (parent == null) {
throw new IllegalStateException("no parent set on " + getClass().getName() + "[" + name + "]");
}
return parent;
}

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

@WithBridgeMethods(List.class)
protected DescribableList,TriggerDescriptor> triggers() {
if (triggers == null) {
triggersUpdater.compareAndSet(this,null,new DescribableList,TriggerDescriptor>(this));
}
return triggers;
}

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

/**
* Schedules a build of this project, and returns a {@link Future} object
* to wait for the completion of the build.
*/
@WithBridgeMethods(Future.class)
public QueueTaskFuture scheduleBuild2(int quietPeriod, Cause c) {
return scheduleBuild2(quietPeriod, c, new Action[0]);
}

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

/**
* Schedules a build of this project, and returns a {@link Future} object
* to wait for the completion of the build.
*
* @param actions
* For the convenience of the caller, this array can contain null, and those will be silently ignored.
*/
@WithBridgeMethods(Future.class)
public QueueTaskFuture scheduleBuild2(int quietPeriod, Cause c, Action... actions) {
return scheduleBuild2(quietPeriod,c,Arrays.asList(actions));
}

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

/**
* Checks the queue and runs anything that can be run.
*
*


* When conditions are changed, this method should be invoked.
*


* This wakes up one {@link Executor} so that it will maintain a queue.
*/
@WithBridgeMethods(void.class)
public Future scheduleMaintenance() {
// LOGGER.info("Scheduling maintenance");
return maintainerThread.submit();
}

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

/**
* Gets the special label that represents this node itself.
*/
@Nonnull
@WithBridgeMethods(Label.class)
public LabelAtom getSelfLabel() {
return LabelAtom.get(getNodeName());
}

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

/**
* Obtains a list of builds, in the descending order, that are within the specified time range [start,end).
*
* @return can be empty but never null.
* @deprecated
* as of 1.372. Should just do {@code getBuilds().byTimestamp(s,e)} to avoid code bloat in {@link Job}.
*/
@WithBridgeMethods(List.class)
@Deprecated
public RunList getBuildsByTimestamp(long start, long end) {
return getBuilds().byTimestamp(start,end);
}

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

/**
* Schedules a build of this project, and returns a {@link Future} object
* to wait for the completion of the build.
*
* @param actions
* For the convenience of the caller, this collection can contain null, and those will be silently ignored.
* @since 1.383
*/
@WithBridgeMethods(Future.class)
public QueueTaskFuture scheduleBuild2(int quietPeriod, Cause c, Collection actions) {
List queueActiOns= new ArrayList(actions);
if (c != null) {
queueActions.add(new CauseAction(c));
}
return scheduleBuild2(quietPeriod, queueActions.toArray(new Action[queueActions.size()]));
}

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

@WithBridgeMethods(List.class)
public static DescriptorExtensionList all() {
return Jenkins.getInstance().getDescriptorList(SettingsProvider.class);
}
}

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

@WithBridgeMethods(List.class)
public static DescriptorExtensionList all() {
return Jenkins.getInstance().getDescriptorList(GlobalSettingsProvider.class);
}
}

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

@WithBridgeMethods(void.class)
public boolean addAll(Collection items) {
data.addAll(items);
_onModified();
return true;
}

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

/**
* Gets the {@link Job} that this pointer points to,
* or null if such a job no longer exists.
*/
@WithBridgeMethods(value=AbstractProject.class, castRequired=true)
public Job getJob() {
return Jenkins.getInstance().getItemByFullName(name, Job.class);
}

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

@WithBridgeMethods(void.class)
public boolean add(T item) {
data.add(item);
_onModified();
return true;
}

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

/**
* Schedules a build, and returns a {@link Future} object
* to wait for the completion of the build.
*
*


* Production code shouldn't be using this, but for tests this is very convenient, so this isn't marked
* as deprecated.
*/
@SuppressWarnings("deprecation")
@WithBridgeMethods(Future.class)
public QueueTaskFuture scheduleBuild2(int quietPeriod) {
return scheduleBuild2(quietPeriod, new LegacyCodeCause());
}

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

/**
* Gets the read-only view of all the builds.
*
* @return never null. The first entry is the latest build.
*/
@Exported(name="allBuilds",visibility=-2)
@WithBridgeMethods(List.class)
public RunList getBuilds() {
return RunList.fromRuns(_getRuns().values());
}

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

/**
* Gets the list of {@link Build}s that include changes by this user,
* by the timestamp order.
*/
@SuppressWarnings("unchecked")
@WithBridgeMethods(List.class)
public @Nonnull
RunList getBuilds() {
return RunList.fromJobs((Iterable) Jenkins.get().
allItems(Job.class)).filter((Predicate>) r -> r instanceof AbstractBuild && relatedTo((AbstractBuild) r));
}

代码示例来源:origin: kohsuke/github-api

/**
* @return API URL of this object.
*/
@WithBridgeMethods(value = String.class, adapterMethod = "urlToString")
public URL getUrl() {
return GitHub.parseURL(url);
}

代码示例来源:origin: kohsuke/github-api

/**
* Lists the users that this user is following
*/
@WithBridgeMethods(Set.class)
public GHPersonSet getFollows() throws IOException {
return new GHPersonSet(listFollows().asList());
}

代码示例来源:origin: kohsuke/github-api

/**
* Gets the collaborators on this repository.
* This set always appear to include the owner.
*/
@WithBridgeMethods(Set.class)
public GHPersonSet getCollaborators() throws IOException {
return new GHPersonSet(listCollaborators().asList());
}

推荐阅读
author-avatar
mobiledu2502896593
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有