@Override public Map<String, String> loadProperties() { Map<String, String> properties = new HashMap<>(); this.loadBasicProperties(properties); properties.putAll(this.getPropertyProvider().loadProperties()); return properties; }
@Override public Map<String, String> loadProperties() { Map<String, String> props = super.loadProperties(); if (System.getProperty(Configuration.SERVICE_PACKAGE) == null) { props.put(Configuration.SERVICE_PACKAGE, this.getClass().getPackage().getName()); } return props; }
@Override public final void doStop() throws Exception { try { this.doBeforeSpringStop(); } catch (Exception e) { throw new RuntimeException("Before spring stop failed", e); } Lock writeLock = this.rwLock.writeLock(); try { writeLock.lock(); if (this.context.get() == null) { throw new RuntimeException("Not yet started"); } this.context.get().stop(); this.context.get().close(); this.context.set(null); } catch (Exception e) { throw new RuntimeException("spring stop failed", e); } finally { writeLock.unlock(); } try { this.doAfterSpringStop(); } catch (Exception e) { throw new RuntimeException("After spring stop failed", e); } super.doStop(); }
@Override public final void doStart() throws Exception { super.doStart(); try { this.doBeforeSpringStart();
@Override public final void doStop() throws Exception { try { this.doBeforeSpringStop(); } catch (Exception e) { throw new RuntimeException("Before spring stop failed", e); } Lock writeLock = this.rwLock.writeLock(); try { writeLock.lock(); if (this.context.get() == null) { throw new RuntimeException("Not yet started"); } this.context.get().stop(); this.context.get().close(); this.context.set(null); } catch (Exception e) { throw new RuntimeException("spring stop failed", e); } finally { writeLock.unlock(); } try { this.doAfterSpringStop(); } catch (Exception e) { throw new RuntimeException("After spring stop failed", e); } super.doStop(); }
@Override public final void doStart() throws Exception { super.doStart(); try { this.doBeforeSpringStart();
@Override public Map<String, String> loadProperties() { Map<String, String> properties = new HashMap<>(); this.loadBasicProperties(properties); properties.putAll(this.getPropertyProvider().loadProperties()); return properties; }
@Override public Map<String, String> loadProperties() { Map<String, String> props = super.loadProperties(); if (System.getProperty(Configuration.SERVICE_PACKAGE) == null) { props.put(Configuration.SERVICE_PACKAGE, this.getClass().getPackage().getName()); } return props; }