• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java UnLoad类的典型用法和代码示例

java 2次浏览

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

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

示例1: processLoadAndUnloadAnnotatedMethods

点赞 2

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

点赞 2

import com.thoughtworks.go.plugin.api.annotation.UnLoad; //导入依赖的package包/类
@UnLoad
public void onUnload(PluginContext context) {
    logger.info("Nothing to do here, please unload me.....");
}
 

开发者ID:gocd,
项目名称:sample-plugins,
代码行数:5,
代码来源:DescriptorHash.java

示例3: onUnLoad

点赞 2

import com.thoughtworks.go.plugin.api.annotation.UnLoad; //导入依赖的package包/类
@UnLoad
public void onUnLoad(final PluginContext context) {
    LOG.info("Removed Docker plugin" );
}
 

开发者ID:decoomanj,
项目名称:gocd-docker-material-poller,
代码行数:5,
代码来源:DockerMaterialProvider.java

示例4: onUnload

点赞 2

import com.thoughtworks.go.plugin.api.annotation.UnLoad; //导入依赖的package包/类
@UnLoad
public void onUnload(PluginContext context) {
    System.out.println("Plugin unloaded");
}
 

开发者ID:gocd,
项目名称:go-plugins,
代码行数:5,
代码来源:InvalidXmlPlugin.java

示例5: onUnload

点赞 2

import com.thoughtworks.go.plugin.api.annotation.UnLoad; //导入依赖的package包/类
@UnLoad
public void onUnload(PluginContext context) {
    System.out.println("ValidInnerClassPlugin unloaded");
}
 

开发者ID:gocd,
项目名称:go-plugins,
代码行数:5,
代码来源:ValidInnerClassPlugin.java

示例6: onUnload

点赞 2

import com.thoughtworks.go.plugin.api.annotation.UnLoad; //导入依赖的package包/类
@UnLoad
public void onUnload(PluginContext context) {
    System.out.println("ValidSubClassPlugin unloaded");
}
 

开发者ID:gocd,
项目名称:go-plugins,
代码行数:5,
代码来源:ValidSubClassPlugin.java

示例7: onUnload

点赞 2

import com.thoughtworks.go.plugin.api.annotation.UnLoad; //导入依赖的package包/类
@UnLoad
public void onUnload(PluginContext context) {
    System.out.println("ValidStaticClassPlugin unloaded");
}
 

开发者ID:gocd,
项目名称:go-plugins,
代码行数:5,
代码来源:ValidStaticClassPlugin.java

示例8: tearDownData1

点赞 2

import com.thoughtworks.go.plugin.api.annotation.UnLoad; //导入依赖的package包/类
@UnLoad
void tearDownData1(PluginContext context) {
    unLoadInvoked++;
}
 

开发者ID:gocd,
项目名称:gocd,
代码行数:5,
代码来源:GoExtensionWithNonPublicLoadUnloadAnnotation.java

示例9: tearDownData

点赞 2

import com.thoughtworks.go.plugin.api.annotation.UnLoad; //导入依赖的package包/类
@UnLoad
public void tearDownData() {
    incrementLoadInvoked();
}
 

开发者ID:gocd,
项目名称:gocd,
代码行数:5,
代码来源:GoExtensionWithInheritedPublicLoadUnloadAnnotationMethod.java

示例10: tearDownData1

点赞 2

import com.thoughtworks.go.plugin.api.annotation.UnLoad; //导入依赖的package包/类
@UnLoad
public static void tearDownData1(PluginContext context) {
    unLoadInvoked++;
}
 

开发者ID:gocd,
项目名称:gocd,
代码行数:5,
代码来源:GoExtensionWithStaticLoadAnnotationMethod.java

示例11: tearDownData1

点赞 2

import com.thoughtworks.go.plugin.api.annotation.UnLoad; //导入依赖的package包/类
@UnLoad
public void tearDownData1(PluginContext context) {
}
 

开发者ID:gocd,
项目名称:gocd,
代码行数:4,
代码来源:GoExtensionWithMultipleLoadUnloadAnnotation.java

示例12: tearDownData2

点赞 2

import com.thoughtworks.go.plugin.api.annotation.UnLoad; //导入依赖的package包/类
@UnLoad
public void tearDownData2(PluginContext context) {
}
 

开发者ID:gocd,
项目名称:gocd,
代码行数:4,
代码来源:GoExtensionWithMultipleLoadUnloadAnnotation.java

示例13: tearDownData1

点赞 2

import com.thoughtworks.go.plugin.api.annotation.UnLoad; //导入依赖的package包/类
@UnLoad
public void tearDownData1(int i) {
    unLoadInvoked++;
}
 

开发者ID:gocd,
项目名称:gocd,
代码行数:5,
代码来源:GoExtensionWithPublicLoadUnloadAnnotationWithArguments.java

示例14: parameterlessLoadTeardown

点赞 2

import com.thoughtworks.go.plugin.api.annotation.UnLoad; //导入依赖的package包/类
@UnLoad
public void parameterlessLoadTeardown() {
    unLoadInvoked++;
}
 

开发者ID:gocd,
项目名称:gocd,
代码行数:5,
代码来源:GoExtensionWithPublicLoadUnloadAnnotationWithArguments.java

示例15: throwExceptionAgain

点赞 2

import com.thoughtworks.go.plugin.api.annotation.UnLoad; //导入依赖的package包/类
@UnLoad
public int throwExceptionAgain(PluginContext context) throws IOException {
    throw new IOException("Unload Dummy Checked Exception");
}
 

开发者ID:gocd,
项目名称:gocd,
代码行数:5,
代码来源:GoExtensionWithUnloadAnnotationMethodThrowingException.java

示例16: tearDown

点赞 2

import com.thoughtworks.go.plugin.api.annotation.UnLoad; //导入依赖的package包/类
@UnLoad
public void tearDown(PluginContext context) {
    logger.info("HELLO from unload in PublicGoExtensionClassWhichLogsInAStaticBlock");
}
 

开发者ID:gocd,
项目名称:gocd,
代码行数:5,
代码来源:PublicGoExtensionClassWhichLogsInAStaticBlock.java

示例17: tearDown

点赞 2

import com.thoughtworks.go.plugin.api.annotation.UnLoad; //导入依赖的package包/类
@UnLoad
public void tearDown(PluginContext context) {
    unLoadInvoked++;
}
 

开发者ID:gocd,
项目名称:gocd,
代码行数:5,
代码来源:NonExtensionWithLoadUnloadAnnotation.java

示例18: onUnload

点赞 2

import com.thoughtworks.go.plugin.api.annotation.UnLoad; //导入依赖的package包/类
@UnLoad
public void onUnload(PluginContext context) {
    ++unloadCalled;
    System.out.println("Plugin unloaded");
}
 

开发者ID:gocd,
项目名称:gocd,
代码行数:6,
代码来源:DescriptorPlugin.java

示例19: onUnload

点赞 2

import com.thoughtworks.go.plugin.api.annotation.UnLoad; //导入依赖的package包/类
@UnLoad
public void onUnload(PluginContext context) {
    ++unloadCalled;
    System.out.println("Tom Plugin unloaded");
}
 

开发者ID:gocd,
项目名称:gocd,
代码行数:6,
代码来源:PluginDescriptorAwareTom.java

示例20: onUnload

点赞 2

import com.thoughtworks.go.plugin.api.annotation.UnLoad; //导入依赖的package包/类
@UnLoad
public void onUnload(PluginContext context) {
    ++unloadCalled;
    System.out.println("Jerry Plugin unloaded");
}
 

开发者ID:gocd,
项目名称:gocd,
代码行数:6,
代码来源:PluginDescriptorAwareJerry.java

示例21: onUnload

点赞 1

import com.thoughtworks.go.plugin.api.annotation.UnLoad; //导入依赖的package包/类
/**
 * A on unload plugin hook. This method will be invoked on successful plugin initialization.
 *
 * @param context the plugin context
 */
@UnLoad
public void onUnload(PluginContext context) {
    // empty method
}
 

开发者ID:jmnarloch,
项目名称:gocd-task-plugin-api,
代码行数:10,
代码来源:AbstractDispatchingTask.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)