Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ryan Berkheimer
messageapi
Commits
d3cfb372
Commit
d3cfb372
authored
Sep 10, 2020
by
Ryan Berkheimer
Browse files
added system exits in exceptions for building plugins from spec
parent
a5c76585
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/java/main/gov/noaa/messageapi/parsers/plugins/ContainerPluginParser.java
View file @
d3cfb372
...
...
@@ -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
;
}
...
...
src/java/main/gov/noaa/messageapi/parsers/plugins/ProtocolPluginParser.java
View file @
d3cfb372
...
...
@@ -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
;
}
...
...
src/java/main/gov/noaa/messageapi/parsers/plugins/SchemaPluginParser.java
View file @
d3cfb372
...
...
@@ -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
;
}
...
...
src/java/main/gov/noaa/messageapi/parsers/plugins/SessionPluginParser.java
View file @
d3cfb372
...
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment