本文整理汇总了Java中javaposse.jobdsl.plugin.ContextExtensionPoint类的典型用法代码示例。如果您正苦于以下问题:Java ContextExtensionPoint类的具体用法?Java ContextExtensionPoint怎么用?Java ContextExtensionPoint使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ContextExtensionPoint类属于javaposse.jobdsl.plugin包,在下文中一共展示了ContextExtensionPoint类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: repoProviders
import javaposse.jobdsl.plugin.ContextExtensionPoint; //导入依赖的package包/类
public void repoProviders(Runnable closure) {
GitHubRepoProvidersDslContext repoProvidersContext = new GitHubRepoProvidersDslContext();
ContextExtensionPoint.executeInContext(closure, repoProvidersContext);
repoProviders.clear();
repoProviders.addAll(repoProvidersContext.repoProviders());
}
开发者ID:KostyaSha,项目名称:github-integration-plugin,代码行数:8,代码来源:GitHubPRTriggerDslContext.java
示例2: mode
import javaposse.jobdsl.plugin.ContextExtensionPoint; //导入依赖的package包/类
public void mode(Runnable closure) {
GitHubPRTriggerModeDslContext modeContext = new GitHubPRTriggerModeDslContext();
ContextExtensionPoint.executeInContext(closure, modeContext);
mode = modeContext.mode();
}
开发者ID:KostyaSha,项目名称:github-integration-plugin,代码行数:7,代码来源:GitHubPRTriggerDslContext.java
示例3: events
import javaposse.jobdsl.plugin.ContextExtensionPoint; //导入依赖的package包/类
public void events(Runnable closure) {
GitHubPREventsDslContext eventsContext = new GitHubPREventsDslContext();
ContextExtensionPoint.executeInContext(closure, eventsContext);
events.addAll(eventsContext.events());
}
开发者ID:KostyaSha,项目名称:github-integration-plugin,代码行数:7,代码来源:GitHubPRTriggerDslContext.java
示例4: permission
import javaposse.jobdsl.plugin.ContextExtensionPoint; //导入依赖的package包/类
public void permission(Runnable closure) {
GHRepoPermissionDslContext permissionContext = new GHRepoPermissionDslContext();
ContextExtensionPoint.executeInContext(closure, permissionContext);
provider.setRepoPermission(permissionContext.permission());
}
开发者ID:KostyaSha,项目名称:github-integration-plugin,代码行数:7,代码来源:GitHubPluginRepoProviderDslContext.java
示例5: gitHubPlugin
import javaposse.jobdsl.plugin.ContextExtensionPoint; //导入依赖的package包/类
public void gitHubPlugin(Runnable closure) {
GitHubPluginRepoProviderDslContext githubPluginContext = new GitHubPluginRepoProviderDslContext();
ContextExtensionPoint.executeInContext(closure, githubPluginContext);
repoProviders.add(githubPluginContext.getProvider());
}
开发者ID:KostyaSha,项目名称:github-integration-plugin,代码行数:7,代码来源:GitHubRepoProvidersDslContext.java
示例6: branchRestriction
import javaposse.jobdsl.plugin.ContextExtensionPoint; //导入依赖的package包/类
public void branchRestriction(Runnable closure) {
GitHubBranchFilterEventDslContext filterContext = new GitHubBranchFilterEventDslContext();
ContextExtensionPoint.executeInContext(closure, filterContext);
events.add(filterContext.getFilter());
}
开发者ID:KostyaSha,项目名称:github-integration-plugin,代码行数:7,代码来源:GitHubBranchEventsDslContext.java
示例7: commitChecks
import javaposse.jobdsl.plugin.ContextExtensionPoint; //导入依赖的package包/类
public void commitChecks(Runnable closure) {
GitHubBranchCommitChecksDslContext checksContext = new GitHubBranchCommitChecksDslContext();
ContextExtensionPoint.executeInContext(closure, checksContext);
events.add(checksContext.getEvent());
}
开发者ID:KostyaSha,项目名称:github-integration-plugin,代码行数:7,代码来源:GitHubBranchEventsDslContext.java
示例8: commitMessagePattern
import javaposse.jobdsl.plugin.ContextExtensionPoint; //导入依赖的package包/类
public void commitMessagePattern(Runnable closure) {
GitHubBranchCommitMessageCheckDslContext commitContext = new GitHubBranchCommitMessageCheckDslContext();
ContextExtensionPoint.executeInContext(closure, commitContext);
checks.add(commitContext.getCheck());
}
开发者ID:KostyaSha,项目名称:github-integration-plugin,代码行数:7,代码来源:GitHubBranchCommitChecksDslContext.java
示例9: events
import javaposse.jobdsl.plugin.ContextExtensionPoint; //导入依赖的package包/类
public void events(Runnable closure) {
GitHubBranchEventsDslContext eventsContext = new GitHubBranchEventsDslContext();
ContextExtensionPoint.executeInContext(closure, eventsContext);
events.addAll(eventsContext.events());
}
开发者ID:KostyaSha,项目名称:github-integration-plugin,代码行数:7,代码来源:GitHubBranchTriggerDslContext.java
注:本文中的javaposse.jobdsl.plugin.ContextExtensionPoint类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论