public ApplicationContext getApplicationContext(String id) { this.lock.readLock().lock(); try { return ((ApplicationContextManagerState) getState(true)).getApplicationContext(id); } finally { this.lock.readLock().unlock(); } }
public ApplicationContext getApplicationContext(String id) { this.lock.readLock().lock(); try { return ((ApplicationContextManagerState) getState(true)).getApplicationContext(id); } finally { this.lock.readLock().unlock(); } }
public void start() { boolean oneSuccess = false; RuntimeException lastError = null; for (String instance : getInstanceIds()) { try { getApplicationContext(instance); oneSuccess = true; } catch (RuntimeException e) { // One of the subsystems failed to initialize. The cause would have been logged. Treat this as // non-fatal lastError = e; } } // If we weren't able to start any subsystems, then pass on the last error if (lastError != null && !oneSuccess) { throw lastError; } }
public void start() { boolean oneSuccess = false; RuntimeException lastError = null; for (String instance : getInstanceIds()) { try { getApplicationContext(instance); oneSuccess = true; } catch (RuntimeException e) { // One of the subsystems failed to initialize. The cause would have been logged. Treat this as // non-fatal lastError = e; } } // If we weren't able to start any subsystems, then pass on the last error if (lastError != null && !oneSuccess) { throw lastError; } }