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


Java Load类代码示例

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


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

示例1: processLoadAndUnloadAnnotatedMethods

import com.thoughtworks.go.plugin.api.annotation.Load; //导入依赖的package包/类
private void processLoadAndUnloadAnnotatedMethods(Object implementation) throws InvocationTargetException, IllegalAccessException {
    Method loadAnnotatedMethod = getAnnotatedMethod(implementation, Load.class);
    Method unloadAnnotatedMethod = getAnnotatedMethod(implementation, UnLoad.class);
    if (loadAnnotatedMethod != null) {
        loadAnnotatedMethod.invoke(implementation, DUMMY_PLUGIN_CONTEXT);
    }
    if (unloadAnnotatedMethod != null) {
        this.unloadMethodInvokers.add(new UnloadMethodInvoker(implementation, unloadAnnotatedMethod));
    }
}
 
开发者ID:gocd,项目名称:gocd,代码行数:11,代码来源:DefaultGoPluginActivator.java

示例2: onLoad

import com.thoughtworks.go.plugin.api.annotation.Load; //导入依赖的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

示例3: onLoad

import com.thoughtworks.go.plugin.api.annotation.Load; //导入依赖的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

示例4: onLoad

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

示例5: onLoad

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

示例6: onLoad

import com.thoughtworks.go.plugin.api.annotation.Load; //导入依赖的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

示例7: onLoad

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

示例8: duplicateLoad

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

示例9: onLoad

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

示例10: onLoad

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

示例11: onLoad

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

示例12: onLoad

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

示例13: throwException

import com.thoughtworks.go.plugin.api.annotation.Load; //导入依赖的package包/类
@Load
public int throwException(PluginContext context) throws IOException {
    throw new IOException("Load Dummy Checked Exception");
}
 
开发者ID:gocd,项目名称:gocd,代码行数:5,代码来源:GoExtensionWithLoadAnnotationMethodThrowingException.java

示例14: setupData1

import com.thoughtworks.go.plugin.api.annotation.Load; //导入依赖的package包/类
@Load
void setupData1(PluginContext context) {
    loadInvoked++;
}
 
开发者ID:gocd,项目名称:gocd,代码行数:5,代码来源:GoExtensionWithNonPublicLoadUnloadAnnotation.java

示例15: setupData

import com.thoughtworks.go.plugin.api.annotation.Load; //导入依赖的package包/类
@Load
public void setupData() {
    incrementLoadInvoked();
}
 
开发者ID:gocd,项目名称:gocd,代码行数:5,代码来源:GoExtensionWithInheritedPublicLoadUnloadAnnotationMethod.java


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