All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.codehaus.plexus.configuration.source.ContainerConfigurationSource Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package org.codehaus.plexus.configuration.source;

import org.codehaus.plexus.component.repository.ComponentDescriptor;
import org.codehaus.plexus.configuration.PlexusConfiguration;

/** @author Jason van Zyl */
public class ContainerConfigurationSource
    implements ConfigurationSource
{
    public PlexusConfiguration getConfiguration( ComponentDescriptor componentDescriptor )
    {
        if ( componentDescriptor.hasConfiguration() )
        {
            return componentDescriptor.getConfiguration();
        }

        return null;       
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy