Commit d3cfb372 authored by Ryan Berkheimer's avatar Ryan Berkheimer
Browse files

added system exits in exceptions for building plugins from spec

parent a5c76585
......@@ -22,13 +22,14 @@ public class ContainerPluginParser extends BasePluginParser implements IPluginPa
Object[] args = {getConstructor()};
return (IContainer) constructPlugin(Class.forName(getPlugin()), ctrClasses, args);
} catch (Exception e) {
System.err.println("Exception thrown while building the container plugin from spec: " + e.getMessage());
System.exit(1);
return null;
}
}
protected Set<String> getRequiredConstructorKeys() {
Set<String> set = new HashSet<String>();
//set.add("metadata");
set.add("collections");
return set;
}
......
......@@ -22,13 +22,14 @@ public class ProtocolPluginParser extends BasePluginParser implements IPluginPar
Object[] args = {getConstructor()};
return (IProtocol) constructPlugin(Class.forName(getPlugin()), ctrClasses, args);
} catch (Exception e) {
System.err.println("Exception thrown while building the protocol plugin from spec: " + e.getMessage());
System.exit(1);
return null;
}
}
protected Set<String> getRequiredConstructorKeys() {
Set<String> set = new HashSet<String>();
//set.add("metadata");
set.add("endpoints");
return set;
}
......
......@@ -28,7 +28,6 @@ public class SchemaPluginParser extends BasePluginParser implements IPluginParse
protected Set<String> getRequiredConstructorKeys() {
Set<String> set = new HashSet<String>();
//set.add("metadata");
set.add("fields");
return set;
}
......
......@@ -31,6 +31,8 @@ public class SessionPluginParser extends BasePluginParser implements IPluginPars
Object[] args = {container, protocol, schema};
return (ISession) constructPlugin(Class.forName(getPlugin()), ctrClasses, args);
} catch (Exception e) {
System.err.println("Exception thrown while building the session plugin from spec: " + e.getMessage());
System.exit(1);
return null;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment