public void configure()

in src/java/org/apache/fulcrum/yaafi/service/systemproperty/SystemPropertyServiceImpl.java [49:80]


    public void configure(Configuration configuration) throws ConfigurationException
    {
        String key      = null;
        String value    = null;
        String oldValue = null;
        Configuration[] systemProperties = configuration.getChildren("property");

        for( int i=0; i<systemProperties.length; i++ )
        {
            key         = systemProperties[i].getAttribute("name");
            value       = systemProperties[i].getValue();
            oldValue    = System.getProperty(key);

            if( oldValue != null )
            {
                this.getLogger().debug(
                    "Changing the value of " + key + " from " + oldValue + " to " + value
                    );
            }
            else
            {
                this.getLogger().debug(
                    "Setting the value of " + key + " to " + value
                    );
            }

            System.setProperty( key, value );

        }

        this.getLogger().debug( "Processed the following number of properties : " + systemProperties.length );
    }