本文整理汇总了Java中com.google.gerrit.server.plugins.InvalidPluginException类的典型用法代码示例。如果您正苦于以下问题:Java InvalidPluginException类的具体用法?Java InvalidPluginException怎么用?Java InvalidPluginException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
InvalidPluginException类属于com.google.gerrit.server.plugins包,在下文中一共展示了InvalidPluginException类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: scanGroovyScriptBindings
import com.google.gerrit.server.plugins.InvalidPluginException; //导入依赖的package包/类
private void scanGroovyScriptBindings(AutoRegisterScript auto,
Class<?> scriptClass) throws InvalidPluginException {
Binding binding = new Binding();
Script script = InvokerHelper.createScript(scriptClass, binding);
script.run();
for (Object variable : binding.getVariables().keySet()) {
Object value = binding.getVariable(variable.toString());
if (value == null) {
continue;
}
if (ArrayList.class.isAssignableFrom(value.getClass())) {
scanArrayOfObjectOrClass(auto, value);
} else {
scanObjectOrClass(auto, value);
}
}
}
示例2: doRun
import com.google.gerrit.server.plugins.InvalidPluginException; //导入依赖的package包/类
@Override
protected void doRun() throws UnloggedFailure {
if (names == null || names.isEmpty()) {
loader.rescan();
} else {
try {
loader.reload(names);
} catch (InvalidPluginException | PluginInstallException e) {
throw die(e.getMessage());
}
}
}
示例3: scanArrayOfObjectOrClass
import com.google.gerrit.server.plugins.InvalidPluginException; //导入依赖的package包/类
private void scanArrayOfObjectOrClass(AutoRegisterScript auto, Object value)
throws InvalidPluginException {
ArrayList list = (ArrayList) value;
for (Object element : list) {
if (element == null) {
continue;
}
scanObjectOrClass(auto, element);
}
}
示例4: scanObjectOrClass
import com.google.gerrit.server.plugins.InvalidPluginException; //导入依赖的package包/类
private void scanObjectOrClass(AutoRegisterScript auto, Object element)
throws InvalidPluginException {
if (Class.class.isAssignableFrom(element.getClass())) {
auto.scan((Class<?>) element);
} else {
auto.scan(element.getClass());
}
}
示例5: create
import com.google.gerrit.server.plugins.InvalidPluginException; //导入依赖的package包/类
@Override
public Module create() throws InvalidPluginException {
Preconditions.checkState(command != null, "pluginName must be provided");
return !commands.isEmpty() ? this : null;
}
示例6: create
import com.google.gerrit.server.plugins.InvalidPluginException; //导入依赖的package包/类
@Override
public Module create() throws InvalidPluginException {
return this;
}