@Override protected Device find(DicomConfiguration conf, String key) throws ConfigurationException { return conf.findDevice(key); }
@Override protected ApplicationEntity find(DicomConfiguration conf, String key) throws ConfigurationException { return conf.findApplicationEntity(key); }
private Device findDevice() throws ConfigurationException { String deviceName = System.getProperty(deviceNameProperty); if (deviceName == null) deviceName = System.getProperty(DEVICE_NAME_PROPERTY, DEF_DEVICE_NAME); try { conf.sync(); return conf.findDevice(deviceName); } catch (ConfigurationNotFoundException e) { // Try to initialize the default config if configured by a system property if (System.getProperty(DO_DEFAULT_CONFIG_PROPERTY) != null) { DefaultConfigurator.applyDefaultConfig(conf, deviceName); return conf.findDevice(deviceName); } else throw e; } }
public void disposeDicomConfiguration(@Disposes @Storage DicomConfiguration conf) { conf.close(); }
@Override protected Device find(DicomConfiguration conf, String key) throws ConfigurationException { return conf.findDevice(key); }
@Override protected ApplicationEntity find(DicomConfiguration conf, String key) throws ConfigurationException { return conf.findApplicationEntity(key); }
private Device findDevice() throws ConfigurationException { String deviceName = System.getProperty(STORAGE_DEVICE_NAME_PROPERTY, System.getProperty(xdsDeviceNameProperty, DEF_STORAGE_DEVICE_NAME)); return conf.findDevice(deviceName); }
@Override public void reload() throws Exception { device.reconfigure(conf.findDevice(device.getDeviceName())); }
public void init() { try { Device device = dicomConfiguration.findDevice(deviceName); init(device); device.setDimseRQHandler(serviceRegistry); start(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }
@PostConstruct public void init() { try { Device device = conf.findDevice(deviceName); init(device); for (DicomService service : services) { serviceRegistry.addDicomService(service); } device.setDimseRQHandler(serviceRegistry); start(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }
@Override public void reload() throws Exception { device.reconfigure(conf.findDevice(device.getDeviceName())); device.rebindConnections(); }
@Override public void reload() throws Exception { device.reconfigure(dicomConfiguration.findDevice(device.getDeviceName())); device.rebindConnections(); }