* before reading it from the registry.
* </p>
*/
-@Service( "archivaConfiguration#default" )
+@Service("archivaConfiguration#default")
public class DefaultArchivaConfiguration
implements ArchivaConfiguration, RegistryListener
{
* Plexus registry to read the configuration from.
*/
@Inject
- @Named( value = "commons-configuration" )
+ @Named(value = "commons-configuration")
private Registry registry;
@Inject
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)
return registry.getSubset( KEY );
}
- @SuppressWarnings( "unchecked" )
+ @SuppressWarnings("unchecked")
@Override
public synchronized void save( Configuration configuration )
throws IndeterminateConfigurationException, RegistryException
// 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;
}
{
c.setRefreshCronExpression( escapeCronExpression( c.getRefreshCronExpression() ) );
}
-
-
}
private Registry createDefaultConfigurationFile()
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." );
}
}
extends AbstractRestService
implements RedbackRuntimeConfigurationService
{
+
@Inject
private RedbackRuntimeConfigurationAdmin redbackRuntimeConfigurationAdmin;
{
try
{
- return redbackRuntimeConfigurationAdmin.getRedbackRuntimeConfiguration();
+ RedbackRuntimeConfiguration redbackRuntimeConfiguration =
+ redbackRuntimeConfigurationAdmin.getRedbackRuntimeConfiguration();
+
+ log.debug( "getRedbackRuntimeConfiguration -> {}", redbackRuntimeConfiguration );
+
+ return redbackRuntimeConfiguration;
}
catch ( RepositoryAdminException e )
{