Java源码示例:com.thoughtworks.go.plugin.api.info.PluginContext
示例1
@Load
public void onLoad(PluginContext ctx) {
final Properties properties = Util.getPluginProperties();
LOG.info(String.format("Loading plugin %s[%s].", properties.getProperty("name"), properties.getProperty("pluginId")));
}
示例2
@Load
public void onLoad(PluginContext ctx) {
LOG.info("Loading plugin " + Util.pluginId() + " version " + Util.fullVersion());
}
示例3
@Load
public void onLoad(PluginContext ctx) {
LOG.info("Loading plugin " + Util.pluginId() + " version " + Util.pluginVersion());
}
示例4
@Load
public void onLoad(PluginContext context) {
LOGGER.info("Loading GitPathMaterialPlugin...");
LOGGER.info("Type is {}", HelperFactory.determineType());
}
示例5
@Load
public void onLoad(PluginContext context) {
logger.info("Boo");
System.out.println("Invalid Xml Plugin loaded");
}
示例6
@UnLoad
public void onUnload(PluginContext context) {
System.out.println("Plugin unloaded");
}
示例7
@Load
public void onLoad(PluginContext context) {
logger.info("Boo");
System.out.println("Plugin with some plugin.xml values loaded");
}
示例8
@UnLoad
public void onUnload(PluginContext context) {
System.out.println("Plugin unloaded");
}
示例9
@Load
public void onLoad(PluginContext context) {
logger.info("onLoad");
}
示例10
@Load
public void duplicateLoad(PluginContext context) {
logger.info("duplicateLoad");
}
示例11
@UnLoad
public void onUnload(PluginContext context) {
System.out.println("Plugin unloaded");
}
示例12
@Load
public void onLoad(PluginContext context) {
logger.info("In Top Class");
System.out.println("ValidInnerClassPlugin loaded");
}
示例13
@UnLoad
public void onUnload(PluginContext context) {
System.out.println("ValidInnerClassPlugin unloaded");
}
示例14
@Load
public void onLoad(PluginContext context) {
logger.info("ValidSubClass");
System.out.println("ValidSubClassPlugin loaded");
}
示例15
@UnLoad
public void onUnload(PluginContext context) {
System.out.println("ValidSubClassPlugin unloaded");
}
示例16
@Load
public void onLoad(PluginContext context) {
System.out.println("Do Nothing Plugin loaded");
}
示例17
@UnLoad
public void onUnload(PluginContext context) {
System.out.println("Plugin unloaded");
}
示例18
@Load
public void onLoad(PluginContext context) {
System.out.println("Do Nothing Plugin loaded");
}
示例19
@UnLoad
public void onUnload(PluginContext context) {
System.out.println("Plugin unloaded");
}
示例20
@Load
public void onLoad(PluginContext context) {
logger.info("Boo");
System.out.println("Do Nothing Plugin loaded");
}
示例21
@UnLoad
public void onUnload(PluginContext context) {
System.out.println("Plugin unloaded");
}
示例22
@Load
public void onLoad(PluginContext context) {
logger.info("ValidTopClass");
System.out.println("ValidStaticClassPlugin loaded");
}
示例23
@UnLoad
public void onUnload(PluginContext context) {
System.out.println("ValidStaticClassPlugin unloaded");
}
示例24
private boolean hasOneArgOfPluginContextType(Method method) {
return method.getParameterTypes().length == 1 && method.getParameterTypes()[0] == PluginContext.class;
}
示例25
@Load
public int throwException(PluginContext context) throws IOException {
throw new IOException("Load Dummy Checked Exception");
}
示例26
@Load
void setupData1(PluginContext context) {
loadInvoked++;
}
示例27
@UnLoad
void tearDownData1(PluginContext context) {
unLoadInvoked++;
}
示例28
@Load
public static void setupData1(PluginContext context) {
loadInvoked++;
}
示例29
@UnLoad
public static void tearDownData1(PluginContext context) {
unLoadInvoked++;
}
示例30
@Load
public void setupData1(PluginContext context) {
}