VIVO-778 Restructure the driver and connect the plumbing properly.

Replace PelletListener with BasicTBoxReasonerDriver, and associated classes.
Run the background thread from an ExecutorService.
Since nobody was using the FOREGROUND flag, and since its logic was flawed, skip it.

Make TBoxReasonerModule a module on the Application. Make the reasoner status available through the module.
Initialize it in startup_listeners.txt
Create a concrete class for PelletTBoxReasonerModule, and configure it in applicationSetup.n3

Get rid of PelletReasonerSetup.

Make it so the ExecutorService in BasicTBoxReasonerDriver uses a VitroBackgroundThread.,
This commit is contained in:
Jim Blake 2014-12-03 17:10:33 -05:00
commit 1c66271101
27 changed files with 3610 additions and 570 deletions

View file

@ -6,11 +6,11 @@
<section class="pageBodyGroup" role="region">
<h3>${i18n().ontology_editor}</h3>
<#if ontologyEditor.pellet?has_content>
<#if ontologyEditor.tboxReasonerStatus?has_content>
<div class="notice">
<p>${ontologyEditor.pellet.error}</p>
<#if ontologyEditor.pellet.explanation?has_content>
<p>${i18n().cause} ${ontologyEditor.pellet.explanation}</p>
<p>${ontologyEditor.tboxReasonerStatus.error}</p>
<#if ontologyEditor.tboxReasonerStatus.explanation?has_content>
<p>${i18n().cause} ${ontologyEditor.tboxReasonerStatus.explanation}</p>
</#if>
</div>
</#if>