@Override public void reload() { this.configuration = null; try { this.registry.initialize(); } catch (RegistryException e) { throw new ConfigurationRuntimeException(e.getMessage(), e); } this.initialize(); }
throw new RuntimeException( errMsg + e.getMessage(), e );
throw new UserConfigurationException( e.getMessage(), e );
@Override public void reload() { this.configuration = null; try { this.registry.initialize(); } catch ( RegistryException e ) { throw new ConfigurationRuntimeException( e.getMessage(), e ); } this.initialize(); }
throw new RuntimeException( errMsg + e.getMessage(), e );
log.error("Error occured during configuration update to new version: {}", e.getMessage()); } catch (RegistryException e) { log.error("Error occured during configuration update to new version: {}", e.getMessage());
log.error("Error occured during configuration update to new version: {}", e.getMessage()); } catch (RegistryException e) { log.error("Error occured during configuration update to new version: {}", e.getMessage());
@Override public void updateRedbackRuntimeConfiguration( RedbackRuntimeConfiguration redbackRuntimeConfiguration ) throws RepositoryAdminException { org.apache.archiva.configuration.RedbackRuntimeConfiguration runtimeConfiguration = build( redbackRuntimeConfiguration ); Configuration configuration = archivaConfiguration.getConfiguration(); configuration.setRedbackRuntimeConfiguration( runtimeConfiguration ); try { archivaConfiguration.save( configuration ); } catch ( RegistryException e ) { throw new RepositoryAdminException( e.getMessage(), e ); } catch ( IndeterminateConfigurationException e ) { throw new RepositoryAdminException( e.getMessage(), e ); } }
@Override public void updateArchivaRuntimeConfiguration( ArchivaRuntimeConfiguration archivaRuntimeConfiguration ) throws RepositoryAdminException { Configuration configuration = archivaConfiguration.getConfiguration(); configuration.setArchivaRuntimeConfiguration( build( archivaRuntimeConfiguration ) ); try { archivaConfiguration.save( configuration ); } catch ( RegistryException e ) { throw new RepositoryAdminException( e.getMessage(), e ); } catch ( IndeterminateConfigurationException e ) { throw new RepositoryAdminException( e.getMessage(), e ); } }