diff options
author | Olivier Lamy <olamy@apache.org> | 2014-11-27 15:32:24 +1100 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2014-11-27 15:32:24 +1100 |
commit | d9473241c956359325aa10bdbff4e39be284c559 (patch) | |
tree | a040370776b9dfc5650ced89400fbcb9909b821d /archiva-modules/archiva-base/archiva-configuration/src | |
parent | c5e256751603e7893a845f2c094bcc1d5461fc55 (diff) | |
download | archiva-d9473241c956359325aa10bdbff4e39be284c559.tar.gz archiva-d9473241c956359325aa10bdbff4e39be284c559.zip |
format and debug infos
Diffstat (limited to 'archiva-modules/archiva-base/archiva-configuration/src')
-rw-r--r-- | archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/DefaultArchivaConfiguration.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/DefaultArchivaConfiguration.java b/archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/DefaultArchivaConfiguration.java index c6cc9530b..665c80ab2 100644 --- a/archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/DefaultArchivaConfiguration.java +++ b/archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/DefaultArchivaConfiguration.java @@ -89,7 +89,7 @@ import java.util.Set; * before reading it from the registry. * </p> */ -@Service( "archivaConfiguration#default" ) +@Service("archivaConfiguration#default") public class DefaultArchivaConfiguration implements ArchivaConfiguration, RegistryListener { @@ -99,7 +99,7 @@ public class DefaultArchivaConfiguration * Plexus registry to read the configuration from. */ @Inject - @Named( value = "commons-configuration" ) + @Named(value = "commons-configuration") private Registry registry; @Inject @@ -183,7 +183,7 @@ public class DefaultArchivaConfiguration return configuration; } - @SuppressWarnings( "unchecked" ) + @SuppressWarnings("unchecked") private Configuration load() { // TODO: should this be the same as section? make sure unnamed sections still work (eg, sys properties) @@ -439,7 +439,7 @@ public class DefaultArchivaConfiguration return registry.getSubset( KEY ); } - @SuppressWarnings( "unchecked" ) + @SuppressWarnings("unchecked") @Override public synchronized void save( Configuration configuration ) throws IndeterminateConfigurationException, RegistryException @@ -464,10 +464,13 @@ public class DefaultArchivaConfiguration // a little aggressive with the repositoryScanning and databaseScanning - should be no need to split // that configuration - if ( key.startsWith( "repositories" ) || key.startsWith( "proxyConnectors" ) || key.startsWith( - "networkProxies" ) || key.startsWith( "repositoryScanning" ) || key.startsWith( - "remoteRepositories" ) || key.startsWith( "managedRepositories" ) || key.startsWith( - "repositoryGroups" ) ) + if ( key.startsWith( "repositories" ) // + || key.startsWith( "proxyConnectors" ) // + || key.startsWith( "networkProxies" ) // + || key.startsWith( "repositoryScanning" ) // + || key.startsWith( "remoteRepositories" ) // + || key.startsWith( "managedRepositories" ) // + || key.startsWith( "repositoryGroups" ) ) // { foundList = true; } @@ -537,8 +540,6 @@ public class DefaultArchivaConfiguration { c.setRefreshCronExpression( escapeCronExpression( c.getRefreshCronExpression() ) ); } - - } private Registry createDefaultConfigurationFile() @@ -558,8 +559,7 @@ public class DefaultArchivaConfiguration throw new RegistryException( "Unable to create configuration file in either user [" + userConfigFilename + "] or alternative [" + altConfigFilename - + "] locations on disk, usually happens when not allowed to write to those locations." - ); + + "] locations on disk, usually happens when not allowed to write to those locations." ); } } |