View Javadoc
1   package org.codehaus.plexus.configuration.source;
2   
3   import org.codehaus.plexus.component.repository.ComponentDescriptor;
4   import org.codehaus.plexus.configuration.PlexusConfiguration;
5   
6   /** @author Jason van Zyl */
7   public class ContainerConfigurationSource implements ConfigurationSource {
8       public PlexusConfiguration getConfiguration(ComponentDescriptor componentDescriptor) {
9           if (componentDescriptor.hasConfiguration()) {
10              return componentDescriptor.getConfiguration();
11          }
12  
13          return null;
14      }
15  }