本文整理匯總了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;
}