当前位置: 首页>>代码示例>>Java>>正文


Java PluginContext类代码示例

本文整理汇总了Java中com.thoughtworks.go.plugin.api.info.PluginContext的典型用法代码示例。如果您正苦于以下问题:Java PluginContext类的具体用法?Java PluginContext怎么用?Java PluginContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


PluginContext类属于com.thoughtworks.go.plugin.api.info包,在下文中一共展示了PluginContext类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onLoad

import com.thoughtworks.go.plugin.api.info.PluginContext; //导入依赖的package包/类
@Load
public void onLoad(PluginContext ctx) {
    LOG.info("Loading plugin " + Util.pluginId() + " version " + Util.pluginVersion());
}
 
开发者ID:gocd,项目名称:gocd-filebased-authentication-plugin,代码行数:5,代码来源:PasswordFilePlugin.java

示例2: onLoad

import com.thoughtworks.go.plugin.api.info.PluginContext; //导入依赖的package包/类
@Load
public void onLoad(PluginContext context) {
    logger.info("Creating a hasher.....");
    HashFunction hashFunction = Hashing.md5();
    hasher = hashFunction.newHasher();
}
 
开发者ID:gocd,项目名称:sample-plugins,代码行数:7,代码来源:DescriptorHash.java

示例3: onUnload

import com.thoughtworks.go.plugin.api.info.PluginContext; //导入依赖的package包/类
@UnLoad
public void onUnload(PluginContext context) {
    logger.info("Nothing to do here, please unload me.....");
}
 
开发者ID:gocd,项目名称:sample-plugins,代码行数:5,代码来源:DescriptorHash.java

示例4: onLoad

import com.thoughtworks.go.plugin.api.info.PluginContext; //导入依赖的package包/类
@Load
public void onLoad(PluginContext context) {
    LOG.info("Docker plugin loaded");
}
 
开发者ID:decoomanj,项目名称:gocd-docker-material-poller,代码行数:5,代码来源:DockerMaterialProvider.java

示例5: onUnLoad

import com.thoughtworks.go.plugin.api.info.PluginContext; //导入依赖的package包/类
@UnLoad
public void onUnLoad(final PluginContext context) {
    LOG.info("Removed Docker plugin" );
}
 
开发者ID:decoomanj,项目名称:gocd-docker-material-poller,代码行数:5,代码来源:DockerMaterialProvider.java

示例6: onLoad

import com.thoughtworks.go.plugin.api.info.PluginContext; //导入依赖的package包/类
@Load
public void onLoad(PluginContext context) {
    logger.info("Boo");
    System.out.println("Invalid Xml Plugin loaded");
}
 
开发者ID:gocd,项目名称:go-plugins,代码行数:6,代码来源:InvalidXmlPlugin.java

示例7: onUnload

import com.thoughtworks.go.plugin.api.info.PluginContext; //导入依赖的package包/类
@UnLoad
public void onUnload(PluginContext context) {
    System.out.println("Plugin unloaded");
}
 
开发者ID:gocd,项目名称:go-plugins,代码行数:5,代码来源:InvalidXmlPlugin.java

示例8: onLoad

import com.thoughtworks.go.plugin.api.info.PluginContext; //导入依赖的package包/类
@Load
public void onLoad(PluginContext context) {
    logger.info("Boo");
    System.out.println("Plugin with some plugin.xml values loaded");
}
 
开发者ID:gocd,项目名称:go-plugins,代码行数:6,代码来源:TestWithSomePluginXmlValues.java

示例9: onLoad

import com.thoughtworks.go.plugin.api.info.PluginContext; //导入依赖的package包/类
@Load
public void onLoad(PluginContext context) {
    logger.info("onLoad");
}
 
开发者ID:gocd,项目名称:go-plugins,代码行数:5,代码来源:PluginWithMultipleLoadMethods.java

示例10: duplicateLoad

import com.thoughtworks.go.plugin.api.info.PluginContext; //导入依赖的package包/类
@Load
public void duplicateLoad(PluginContext context) {
    logger.info("duplicateLoad");
}
 
开发者ID:gocd,项目名称:go-plugins,代码行数:5,代码来源:PluginWithMultipleLoadMethods.java

示例11: onLoad

import com.thoughtworks.go.plugin.api.info.PluginContext; //导入依赖的package包/类
@Load
public void onLoad(PluginContext context) {
    logger.info("In Top Class");
    System.out.println("ValidInnerClassPlugin loaded");
}
 
开发者ID:gocd,项目名称:go-plugins,代码行数:6,代码来源:ValidInnerClassPlugin.java

示例12: onUnload

import com.thoughtworks.go.plugin.api.info.PluginContext; //导入依赖的package包/类
@UnLoad
public void onUnload(PluginContext context) {
    System.out.println("ValidInnerClassPlugin unloaded");
}
 
开发者ID:gocd,项目名称:go-plugins,代码行数:5,代码来源:ValidInnerClassPlugin.java

示例13: onLoad

import com.thoughtworks.go.plugin.api.info.PluginContext; //导入依赖的package包/类
@Load
public void onLoad(PluginContext context) {
    logger.info("ValidSubClass");
    System.out.println("ValidSubClassPlugin loaded");
}
 
开发者ID:gocd,项目名称:go-plugins,代码行数:6,代码来源:ValidSubClassPlugin.java

示例14: onUnload

import com.thoughtworks.go.plugin.api.info.PluginContext; //导入依赖的package包/类
@UnLoad
public void onUnload(PluginContext context) {
    System.out.println("ValidSubClassPlugin unloaded");
}
 
开发者ID:gocd,项目名称:go-plugins,代码行数:5,代码来源:ValidSubClassPlugin.java

示例15: onLoad

import com.thoughtworks.go.plugin.api.info.PluginContext; //导入依赖的package包/类
@Load
public void onLoad(PluginContext context) {
    logger.info("Boo");
    System.out.println("Do Nothing Plugin loaded");
}
 
开发者ID:gocd,项目名称:go-plugins,代码行数:6,代码来源:DoNothingPlugin.java


注:本文中的com.thoughtworks.go.plugin.api.info.PluginContext类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。