NIHVIVO-1834 - a method to say whether ABox reasoning is asynchronous
This commit is contained in:
parent
24d7c25fc7
commit
bd9a3e41a5
1 changed files with 6 additions and 3 deletions
|
@ -609,14 +609,17 @@ public class SimpleReasoner extends StatementListener {
|
|||
}
|
||||
}
|
||||
|
||||
public static SimpleReasoner getSimpleReasonerFromServletContext(
|
||||
ServletContext ctx) {
|
||||
public static SimpleReasoner getSimpleReasonerFromServletContext(ServletContext ctx) {
|
||||
Object simpleReasoner = ctx.getAttribute("simpleReasoner");
|
||||
|
||||
if (simpleReasoner instanceof SimpleReasoner) {
|
||||
return (SimpleReasoner) simpleReasoner;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static boolean isABoxReasoningAsynchronous(ServletContext ctx) {
|
||||
return (getSimpleReasonerFromServletContext(ctx) == null);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue