本文整理汇总了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));
}
}
示例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());
}
示例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();
}
示例4: onLoad
import com.thoughtworks.go.plugin.api.annotation.Load; //导入依赖的package包/类
@Load
public void onLoad(PluginContext context) {
LOG.info("Docker plugin loaded");
}
示例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");
}
示例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");
}
示例7: onLoad
import com.thoughtworks.go.plugin.api.annotation.Load; //导入依赖的package包/类
@Load
public void onLoad(PluginContext context) {
logger.info("onLoad");
}
示例8: duplicateLoad
import com.thoughtworks.go.plugin.api.annotation.Load; //导入依赖的package包/类
@Load
public void duplicateLoad(PluginContext context) {
logger.info("duplicateLoad");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}
示例14: setupData1
import com.thoughtworks.go.plugin.api.annotation.Load; //导入依赖的package包/类
@Load
void setupData1(PluginContext context) {
loadInvoked++;
}
示例15: setupData
import com.thoughtworks.go.plugin.api.annotation.Load; //导入依赖的package包/类
@Load
public void setupData() {
incrementLoadInvoked();
}