Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Devrim Gunyel
core
Commits
ca4c11e0
Commit
ca4c11e0
authored
Nov 14, 2019
by
Piotr Gawron
Browse files
converter must be created when required (problem with concurrent access)
parent
566cf0f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
rest-api/src/main/java/lcsb/mapviewer/api/BaseRestImpl.java
View file @
ca4c11e0
...
...
@@ -311,7 +311,11 @@ public abstract class BaseRestImpl {
protected
Converter
getModelParser
(
String
handlerClass
)
throws
QueryException
{
for
(
Converter
converter
:
getModelConverters
())
{
if
(
converter
.
getClass
().
getCanonicalName
().
equals
(
handlerClass
))
{
return
converter
;
try
{
return
(
Converter
)
Class
.
forName
(
handlerClass
).
newInstance
();
}
catch
(
InstantiationException
|
IllegalAccessException
|
ClassNotFoundException
e
)
{
throw
new
QueryException
(
"Problem with handler:"
+
handlerClass
);
}
}
}
throw
new
QueryException
(
"Unknown handlerClass: "
+
handlerClass
);
...
...
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