Workplace Widget

This commit is contained in:
chris
2026-10-25 08:01:19 +00:00
parent 1781520414
commit d37ac7ed4c
61 changed files with 2289 additions and 632 deletions

View File

@@ -114,121 +114,135 @@ import javax.servlet.ServletContextListener;
+ "PERS_ID " + shortText + "(120) NOT NULL, GROUP_KEY " + shortText + "(120) NOT NULL, PRIMARY KEY (PERS_ID,GROUP_KEY))");
<span class="nc" id="L115"> createIfMissing(c, &quot;HMI_APP_LOGIN_PERSON&quot;, &quot;CREATE TABLE &quot; + prefix + &quot;HMI_APP_LOGIN_PERSON (&quot;</span>
+ &quot;LOGIN_ID &quot; + shortText + &quot;(255) NOT NULL PRIMARY KEY, PERS_ID &quot; + shortText + &quot;(120) NOT NULL)&quot;);
<span class="nc" id="L117"> createIfMissing(c, &quot;HMI_APP_ASSET&quot;, &quot;CREATE TABLE &quot; + prefix + &quot;HMI_APP_ASSET (&quot;</span>
// First-run administration: one permanent, database-locked claim marker.
<span class="nc" id="L118"> createIfMissing(c, &quot;HMI_APP_BOOTSTRAP&quot;, &quot;CREATE TABLE &quot; + prefix + &quot;HMI_APP_BOOTSTRAP (&quot;</span>
+ &quot;ID &quot; + shortText + &quot;(24) NOT NULL PRIMARY KEY, CLAIMED_BY &quot; + shortText + &quot;(255), CLAIMED_AT &quot; + date + &quot;)&quot;);
<span class="nc" id="L120"> try(PreparedStatement ps=c.prepareStatement(&quot;SELECT ID FROM &quot; + prefix + &quot;HMI_APP_BOOTSTRAP WHERE ID='GLOBAL'&quot;);</span>
<span class="nc" id="L121"> ResultSet rs=ps.executeQuery()) {</span>
<span class="nc bnc" id="L122" title="All 2 branches missed."> if(!rs.next())try(PreparedStatement insert=c.prepareStatement(</span>
&quot;INSERT INTO &quot; + prefix + &quot;HMI_APP_BOOTSTRAP(ID) VALUES ('GLOBAL')&quot;)) {
<span class="nc" id="L124"> try{insert.executeUpdate();}catch(SQLException concurrent){</span>
<span class="nc" id="L125"> try(PreparedStatement chk=c.prepareStatement(&quot;SELECT ID FROM &quot; + prefix + &quot;HMI_APP_BOOTSTRAP WHERE ID='GLOBAL'&quot;);</span>
<span class="nc bnc" id="L126" title="All 2 branches missed."> ResultSet check=chk.executeQuery()){if(!check.next())throw concurrent;}</span>
<span class="nc" id="L127"> }</span>
}
}
<span class="nc" id="L130"> createIfMissing(c, &quot;HMI_APP_ASSET&quot;, &quot;CREATE TABLE &quot; + prefix + &quot;HMI_APP_ASSET (&quot;</span>
+ &quot;ID &quot; + shortText + &quot;(64) NOT NULL PRIMARY KEY, ORIGINAL_NAME &quot; + shortText + &quot;(255) NOT NULL, &quot;
+ &quot;MIME_TYPE &quot; + shortText + &quot;(80) NOT NULL, CONTENT &quot; + binary + &quot; NOT NULL, &quot;
+ &quot;CONTENT_SIZE &quot; + numeric + &quot; NOT NULL, UPDATED_BY &quot; + shortText + &quot;(255) NOT NULL)&quot;);
<span class="nc" id="L121"> createIfMissing(c, &quot;HMI_APP_SCHEMA_VERSION&quot;, &quot;CREATE TABLE &quot; + prefix + &quot;HMI_APP_SCHEMA_VERSION (&quot;</span>
<span class="nc" id="L134"> createIfMissing(c, &quot;HMI_APP_SCHEMA_VERSION&quot;, &quot;CREATE TABLE &quot; + prefix + &quot;HMI_APP_SCHEMA_VERSION (&quot;</span>
+ &quot;VERSION_NO &quot; + numeric + &quot; NOT NULL PRIMARY KEY, INSTALLED_AT &quot; + date + &quot; DEFAULT &quot; + now + &quot; NOT NULL)&quot;);
// Fail closed when a v1 schema exists: do not alter existing PKs on a production database.
// See hmi-docs/migrate-v1-to-v2-*.sql for non-destructive, operator-reviewed migration.
<span class="nc" id="L125"> phase = &quot;SCHEMA_VERIFICATION&quot;;</span>
<span class="nc" id="L126"> verifyLayoutStationKey(c, oracle);</span>
<span class="nc" id="L127"> try (PreparedStatement check = c.prepareStatement(&quot;SELECT VERSION_NO FROM &quot; + prefix + &quot;HMI_APP_SCHEMA_VERSION WHERE VERSION_NO = 6&quot;);</span>
<span class="nc" id="L128"> ResultSet rs = check.executeQuery()) {</span>
<span class="nc bnc" id="L129" title="All 2 branches missed."> if (!rs.next()) {</span>
<span class="nc" id="L130"> try (PreparedStatement insert = c.prepareStatement(&quot;INSERT INTO &quot; + prefix + &quot;HMI_APP_SCHEMA_VERSION(VERSION_NO) VALUES (6)&quot;)) {</span>
<span class="nc" id="L131"> insert.executeUpdate();</span>
<span class="nc" id="L132"> } catch (SQLException concurrent) { // A second cluster member may have inserted simultaneously.</span>
<span class="nc" id="L133"> try (PreparedStatement confirm = c.prepareStatement(&quot;SELECT VERSION_NO FROM &quot; + prefix + &quot;HMI_APP_SCHEMA_VERSION WHERE VERSION_NO = 6&quot;);</span>
<span class="nc" id="L134"> ResultSet rs2 = confirm.executeQuery()) {</span>
<span class="nc bnc" id="L135" title="All 2 branches missed."> if (!rs2.next()) throw concurrent;</span>
<span class="nc" id="L138"> phase = &quot;SCHEMA_VERIFICATION&quot;;</span>
<span class="nc" id="L139"> verifyLayoutStationKey(c, oracle);</span>
<span class="nc" id="L140"> try (PreparedStatement check = c.prepareStatement(&quot;SELECT VERSION_NO FROM &quot; + prefix + &quot;HMI_APP_SCHEMA_VERSION WHERE VERSION_NO = 7&quot;);</span>
<span class="nc" id="L141"> ResultSet rs = check.executeQuery()) {</span>
<span class="nc bnc" id="L142" title="All 2 branches missed."> if (!rs.next()) {</span>
<span class="nc" id="L143"> try (PreparedStatement insert = c.prepareStatement(&quot;INSERT INTO &quot; + prefix + &quot;HMI_APP_SCHEMA_VERSION(VERSION_NO) VALUES (7)&quot;)) {</span>
<span class="nc" id="L144"> insert.executeUpdate();</span>
<span class="nc" id="L145"> } catch (SQLException concurrent) { // A second cluster member may have inserted simultaneously.</span>
<span class="nc" id="L146"> try (PreparedStatement confirm = c.prepareStatement(&quot;SELECT VERSION_NO FROM &quot; + prefix + &quot;HMI_APP_SCHEMA_VERSION WHERE VERSION_NO = 7&quot;);</span>
<span class="nc" id="L147"> ResultSet rs2 = confirm.executeQuery()) {</span>
<span class="nc bnc" id="L148" title="All 2 branches missed."> if (!rs2.next()) throw concurrent;</span>
}
<span class="nc" id="L137"> }</span>
<span class="nc" id="L150"> }</span>
}
}
<span class="nc" id="L140"> HmiDb.useDatabase(oracle);</span>
<span class="nc" id="L141"> ready = true;</span>
<span class="nc" id="L142"> phase = &quot;READY&quot;;</span>
<span class="nc" id="L143"> code = &quot;NONE&quot;;</span>
<span class="nc bnc" id="L144" title="All 2 branches missed."> state = &quot;Initialized: &quot; + product + &quot;, schema &quot; + (oracle ? &quot;CUST&quot; : &quot;cust&quot;) + &quot;, version 6&quot;;</span>
<span class="nc" id="L145"> LOG.info(&quot;HMI &quot; + state);</span>
<span class="nc" id="L146"> } catch (Exception ex) {</span>
<span class="nc" id="L147"> ready = false;</span>
<span class="nc bnc" id="L148" title="All 2 branches missed."> if (&quot;NONE&quot;.equals(code)) {</span>
<span class="nc bnc" id="L149" title="All 2 branches missed."> if (!poolConnected) code = &quot;POOL_CONNECTION_FAILED&quot;;</span>
<span class="nc bnc" id="L150" title="All 2 branches missed."> else if (&quot;SCHEMA_VERIFICATION&quot;.equals(phase)) code = &quot;SCHEMA_MIGRATION_REQUIRED&quot;;</span>
<span class="nc bnc" id="L151" title="All 4 branches missed."> else if (&quot;SCHEMA_INITIALIZATION&quot;.equals(phase) || &quot;SCHEMA_CHECK&quot;.equals(phase)) code = &quot;SCHEMA_SETUP_FAILED&quot;;</span>
<span class="nc" id="L152"> else code = &quot;DATABASE_ERROR&quot;;</span>
<span class="nc" id="L153"> HmiDb.useDatabase(oracle);</span>
<span class="nc" id="L154"> ready = true;</span>
<span class="nc" id="L155"> HmiInitialAdmin.initialize(c);</span>
<span class="nc" id="L156"> phase = &quot;READY&quot;;</span>
<span class="nc" id="L157"> code = &quot;NONE&quot;;</span>
<span class="nc bnc" id="L158" title="All 2 branches missed."> state = &quot;Initialized: &quot; + product + &quot;, schema &quot; + (oracle ? &quot;CUST&quot; : &quot;cust&quot;) + &quot;, version 7&quot;;</span>
<span class="nc" id="L159"> LOG.info(&quot;HMI &quot; + state);</span>
<span class="nc" id="L160"> } catch (Exception ex) {</span>
<span class="nc" id="L161"> ready = false;</span>
<span class="nc bnc" id="L162" title="All 2 branches missed."> if (&quot;NONE&quot;.equals(code)) {</span>
<span class="nc bnc" id="L163" title="All 2 branches missed."> if (!poolConnected) code = &quot;POOL_CONNECTION_FAILED&quot;;</span>
<span class="nc bnc" id="L164" title="All 2 branches missed."> else if (&quot;SCHEMA_VERIFICATION&quot;.equals(phase)) code = &quot;SCHEMA_MIGRATION_REQUIRED&quot;;</span>
<span class="nc bnc" id="L165" title="All 4 branches missed."> else if (&quot;SCHEMA_INITIALIZATION&quot;.equals(phase) || &quot;SCHEMA_CHECK&quot;.equals(phase)) code = &quot;SCHEMA_SETUP_FAILED&quot;;</span>
<span class="nc" id="L166"> else code = &quot;DATABASE_ERROR&quot;;</span>
}
<span class="nc" id="L154"> state = &quot;Database initialization failed; inspect GlassFish logs&quot;;</span>
<span class="nc" id="L155"> LOG.log(Level.SEVERE, &quot;HMI schema initialization FAILED [&quot; + code + &quot;, phase=&quot; + phase + &quot;]; HMI endpoints remain unavailable&quot;, ex);</span>
<span class="nc" id="L156"> }</span>
<span class="nc" id="L157"> }</span>
<span class="nc" id="L168"> state = &quot;Database initialization failed; inspect GlassFish logs&quot;;</span>
<span class="nc" id="L169"> LOG.log(Level.SEVERE, &quot;HMI schema initialization FAILED [&quot; + code + &quot;, phase=&quot; + phase + &quot;]; HMI endpoints remain unavailable&quot;, ex);</span>
<span class="nc" id="L170"> }</span>
<span class="nc" id="L171"> }</span>
private boolean pageParentColumnExists(Connection c, boolean oracle) throws SQLException {
<span class="nc" id="L160"> DatabaseMetaData md = c.getMetaData();</span>
<span class="nc bnc" id="L161" title="All 2 branches missed."> String schemaName = oracle ? &quot;CUST&quot; : &quot;cust&quot;;</span>
<span class="nc" id="L162"> try (ResultSet rs = md.getColumns(null, schemaName, &quot;HMI_APP_PAGE&quot;, &quot;PARENT_PAGE_ID&quot;)) {</span>
<span class="nc bnc" id="L163" title="All 2 branches missed."> if (rs.next()) return true;</span>
<span class="nc bnc" id="L164" title="All 2 branches missed."> }</span>
<span class="nc" id="L174"> DatabaseMetaData md = c.getMetaData();</span>
<span class="nc bnc" id="L175" title="All 2 branches missed."> String schemaName = oracle ? &quot;CUST&quot; : &quot;cust&quot;;</span>
<span class="nc" id="L176"> try (ResultSet rs = md.getColumns(null, schemaName, &quot;HMI_APP_PAGE&quot;, &quot;PARENT_PAGE_ID&quot;)) {</span>
<span class="nc bnc" id="L177" title="All 2 branches missed."> if (rs.next()) return true;</span>
<span class="nc bnc" id="L178" title="All 2 branches missed."> }</span>
// Some SQL Server drivers return the schema with different capitalization.
<span class="nc" id="L166"> try (ResultSet rs = md.getColumns(null, schemaName.toUpperCase(Locale.ROOT), &quot;HMI_APP_PAGE&quot;, &quot;PARENT_PAGE_ID&quot;)) {</span>
<span class="nc" id="L167"> return rs.next();</span>
<span class="nc" id="L180"> try (ResultSet rs = md.getColumns(null, schemaName.toUpperCase(Locale.ROOT), &quot;HMI_APP_PAGE&quot;, &quot;PARENT_PAGE_ID&quot;)) {</span>
<span class="nc" id="L181"> return rs.next();</span>
}
}
private void addParentPageColumnIfMissing(Connection c, boolean oracle) throws SQLException {
<span class="nc bnc" id="L171" title="All 2 branches missed."> if (pageParentColumnExists(c, oracle)) return;</span>
<span class="nc bnc" id="L172" title="All 2 branches missed."> String ddl = oracle</span>
<span class="nc" id="L173"> ? &quot;ALTER TABLE CUST.HMI_APP_PAGE ADD (PARENT_PAGE_ID VARCHAR2(64))&quot;</span>
<span class="nc" id="L174"> : &quot;ALTER TABLE cust.HMI_APP_PAGE ADD PARENT_PAGE_ID NVARCHAR(64) NULL&quot;;</span>
<span class="nc" id="L175"> try (Statement st = c.createStatement()) {</span>
<span class="nc" id="L176"> st.execute(ddl);</span>
<span class="nc" id="L177"> LOG.info(&quot;HMI schema V5.2: added HMI_APP_PAGE.PARENT_PAGE_ID&quot;);</span>
<span class="nc" id="L178"> } catch (SQLException error) {</span>
<span class="nc bnc" id="L185" title="All 2 branches missed."> if (pageParentColumnExists(c, oracle)) return;</span>
<span class="nc bnc" id="L186" title="All 2 branches missed."> String ddl = oracle</span>
<span class="nc" id="L187"> ? &quot;ALTER TABLE CUST.HMI_APP_PAGE ADD (PARENT_PAGE_ID VARCHAR2(64))&quot;</span>
<span class="nc" id="L188"> : &quot;ALTER TABLE cust.HMI_APP_PAGE ADD PARENT_PAGE_ID NVARCHAR(64) NULL&quot;;</span>
<span class="nc" id="L189"> try (Statement st = c.createStatement()) {</span>
<span class="nc" id="L190"> st.execute(ddl);</span>
<span class="nc" id="L191"> LOG.info(&quot;HMI schema V5.2: added HMI_APP_PAGE.PARENT_PAGE_ID&quot;);</span>
<span class="nc" id="L192"> } catch (SQLException error) {</span>
// A second GlassFish instance might have applied the same migration.
<span class="nc bnc" id="L180" title="All 2 branches missed."> if (!pageParentColumnExists(c, oracle)) throw error;</span>
<span class="nc" id="L181"> }</span>
<span class="nc" id="L182"> }</span>
<span class="nc bnc" id="L194" title="All 2 branches missed."> if (!pageParentColumnExists(c, oracle)) throw error;</span>
<span class="nc" id="L195"> }</span>
<span class="nc" id="L196"> }</span>
private void verifyLayoutStationKey(Connection c, boolean oracle) throws SQLException {
<span class="nc" id="L185"> DatabaseMetaData md = c.getMetaData();</span>
<span class="nc bnc" id="L186" title="All 2 branches missed."> String schema = oracle ? &quot;CUST&quot; : &quot;cust&quot;;</span>
<span class="nc" id="L187"> boolean station = false, user = false, page = false;</span>
<span class="nc" id="L188"> try (ResultSet columns = md.getColumns(null, schema, &quot;HMI_APP_LAYOUT&quot;, &quot;STATION_ID&quot;)) {</span>
<span class="nc bnc" id="L189" title="All 2 branches missed."> if (!columns.next()) throw new SQLException(&quot;HMI schema v1 layout detected (STATION_ID missing); apply documented v1 to v2 migration&quot;);</span>
<span class="nc" id="L199"> DatabaseMetaData md = c.getMetaData();</span>
<span class="nc bnc" id="L200" title="All 2 branches missed."> String schema = oracle ? &quot;CUST&quot; : &quot;cust&quot;;</span>
<span class="nc" id="L201"> boolean station = false, user = false, page = false;</span>
<span class="nc" id="L202"> try (ResultSet columns = md.getColumns(null, schema, &quot;HMI_APP_LAYOUT&quot;, &quot;STATION_ID&quot;)) {</span>
<span class="nc bnc" id="L203" title="All 2 branches missed."> if (!columns.next()) throw new SQLException(&quot;HMI schema v1 layout detected (STATION_ID missing); apply documented v1 to v2 migration&quot;);</span>
}
<span class="nc" id="L191"> try (ResultSet pk = md.getPrimaryKeys(null, schema, &quot;HMI_APP_LAYOUT&quot;)) {</span>
<span class="nc bnc" id="L192" title="All 2 branches missed."> while (pk.next()) {</span>
<span class="nc" id="L193"> String name = pk.getString(&quot;COLUMN_NAME&quot;);</span>
<span class="nc" id="L194"> station |= &quot;STATION_ID&quot;.equalsIgnoreCase(name);</span>
<span class="nc" id="L195"> user |= &quot;USER_ID&quot;.equalsIgnoreCase(name);</span>
<span class="nc" id="L196"> page |= &quot;PAGE_ID&quot;.equalsIgnoreCase(name);</span>
<span class="nc" id="L197"> }</span>
<span class="nc" id="L205"> try (ResultSet pk = md.getPrimaryKeys(null, schema, &quot;HMI_APP_LAYOUT&quot;)) {</span>
<span class="nc bnc" id="L206" title="All 2 branches missed."> while (pk.next()) {</span>
<span class="nc" id="L207"> String name = pk.getString(&quot;COLUMN_NAME&quot;);</span>
<span class="nc" id="L208"> station |= &quot;STATION_ID&quot;.equalsIgnoreCase(name);</span>
<span class="nc" id="L209"> user |= &quot;USER_ID&quot;.equalsIgnoreCase(name);</span>
<span class="nc" id="L210"> page |= &quot;PAGE_ID&quot;.equalsIgnoreCase(name);</span>
<span class="nc" id="L211"> }</span>
}
<span class="nc bnc" id="L199" title="All 6 branches missed."> if (!station || !user || !page) {</span>
<span class="nc" id="L200"> throw new SQLException(&quot;HMI_APP_LAYOUT requires composite primary key USER_ID, PAGE_ID, STATION_ID; apply documented v1 to v2 migration&quot;);</span>
<span class="nc bnc" id="L213" title="All 6 branches missed."> if (!station || !user || !page) {</span>
<span class="nc" id="L214"> throw new SQLException(&quot;HMI_APP_LAYOUT requires composite primary key USER_ID, PAGE_ID, STATION_ID; apply documented v1 to v2 migration&quot;);</span>
}
<span class="nc" id="L202"> }</span>
<span class="nc" id="L216"> }</span>
private void createSqlServerSchema(Connection c) throws SQLException {
<span class="nc" id="L204"> try (Statement st = c.createStatement()) {</span>
<span class="nc" id="L205"> st.execute(&quot;IF NOT EXISTS (SELECT 1 FROM sys.schemas WHERE name = 'cust') EXEC('CREATE SCHEMA cust')&quot;);</span>
<span class="nc" id="L218"> try (Statement st = c.createStatement()) {</span>
<span class="nc" id="L219"> st.execute(&quot;IF NOT EXISTS (SELECT 1 FROM sys.schemas WHERE name = 'cust') EXEC('CREATE SCHEMA cust')&quot;);</span>
}
<span class="nc" id="L207"> }</span>
<span class="nc" id="L221"> }</span>
private void assertOracleSchemaExists(Connection c) throws SQLException {
<span class="nc" id="L209"> try (PreparedStatement ps = c.prepareStatement(&quot;SELECT 1 FROM ALL_USERS WHERE USERNAME = 'CUST'&quot;);</span>
<span class="nc" id="L210"> ResultSet rs = ps.executeQuery()) {</span>
<span class="nc bnc" id="L211" title="All 2 branches missed."> if (!rs.next()) throw new SQLException(&quot;Oracle schema CUST does not exist. Provision it first using DBA privileges.&quot;);</span>
<span class="nc" id="L223"> try (PreparedStatement ps = c.prepareStatement(&quot;SELECT 1 FROM ALL_USERS WHERE USERNAME = 'CUST'&quot;);</span>
<span class="nc" id="L224"> ResultSet rs = ps.executeQuery()) {</span>
<span class="nc bnc" id="L225" title="All 2 branches missed."> if (!rs.next()) throw new SQLException(&quot;Oracle schema CUST does not exist. Provision it first using DBA privileges.&quot;);</span>
}
<span class="nc" id="L213"> }</span>
<span class="nc" id="L227"> }</span>
private void createIfMissing(Connection c, String table, String ddl) throws SQLException {
<span class="nc bnc" id="L215" title="All 2 branches missed."> if (exists(c, table)) return;</span>
<span class="nc" id="L216"> try (Statement st = c.createStatement()) {</span>
<span class="nc" id="L217"> st.execute(ddl);</span>
<span class="nc" id="L218"> LOG.info(&quot;Created HMI table CUST.&quot; + table);</span>
<span class="nc" id="L219"> } catch (SQLException e) {</span>
<span class="nc bnc" id="L220" title="All 2 branches missed."> if (!exists(c, table)) throw e; // Only suppress a concurrent, successful table creation.</span>
<span class="nc" id="L221"> }</span>
<span class="nc" id="L222"> }</span>
<span class="nc bnc" id="L229" title="All 2 branches missed."> if (exists(c, table)) return;</span>
<span class="nc" id="L230"> try (Statement st = c.createStatement()) {</span>
<span class="nc" id="L231"> st.execute(ddl);</span>
<span class="nc" id="L232"> LOG.info(&quot;Created HMI table CUST.&quot; + table);</span>
<span class="nc" id="L233"> } catch (SQLException e) {</span>
<span class="nc bnc" id="L234" title="All 2 branches missed."> if (!exists(c, table)) throw e; // Only suppress a concurrent, successful table creation.</span>
<span class="nc" id="L235"> }</span>
<span class="nc" id="L236"> }</span>
private boolean exists(Connection c, String table) throws SQLException {
<span class="nc" id="L224"> DatabaseMetaData m = c.getMetaData();</span>
<span class="nc" id="L225"> try (ResultSet rs = m.getTables(null, &quot;CUST&quot;, table, new String[]{&quot;TABLE&quot;})) {</span>
<span class="nc bnc" id="L226" title="All 2 branches missed."> if (rs.next()) return true;</span>
<span class="nc bnc" id="L227" title="All 2 branches missed."> }</span>
<span class="nc" id="L228"> try (ResultSet rs = m.getTables(null, &quot;cust&quot;, table, new String[]{&quot;TABLE&quot;})) {</span>
<span class="nc" id="L229"> return rs.next();</span>
<span class="nc" id="L238"> DatabaseMetaData m = c.getMetaData();</span>
<span class="nc" id="L239"> try (ResultSet rs = m.getTables(null, &quot;CUST&quot;, table, new String[]{&quot;TABLE&quot;})) {</span>
<span class="nc bnc" id="L240" title="All 2 branches missed."> if (rs.next()) return true;</span>
<span class="nc bnc" id="L241" title="All 2 branches missed."> }</span>
<span class="nc" id="L242"> try (ResultSet rs = m.getTables(null, &quot;cust&quot;, table, new String[]{&quot;TABLE&quot;})) {</span>
<span class="nc" id="L243"> return rs.next();</span>
}
}
<span class="nc" id="L232"> @Override public void contextDestroyed(ServletContextEvent event) { ready = false; phase = &quot;STOPPED&quot;; }</span>
<span class="nc" id="L246"> @Override public void contextDestroyed(ServletContextEvent event) { ready = false; phase = &quot;STOPPED&quot;; }</span>
}
</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.4.201905082037</span></div></body></html>