public Properties getProperties()

in spring-registry/spring-registry-commons/src/main/java/org/apache/archiva/redback/components/registry/commons/CommonsConfigurationRegistry.java [152:174]


    public Properties getProperties( String key )
    {
        Configuration configuration = this.configuration.subset( key );

        Properties properties = new Properties();
        for ( Iterator i = configuration.getKeys(); i.hasNext(); )
        {
            String property = (String) i.next();
            List l = configuration.getList( property );
            StringBuilder sb = new StringBuilder();
            for ( Object element : l )
            {
                sb.append( (String) element );
                sb.append( "," );
            }
            if ( sb.length() > 0 )
            {
                sb.deleteCharAt( sb.length() - 1 );
            }
            properties.setProperty( property, sb.toString() );
        }
        return properties;
    }