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
8       implements ConfigurationSource
9   {
10      public PlexusConfiguration getConfiguration( ComponentDescriptor componentDescriptor )
11      {
12          if ( componentDescriptor.hasConfiguration() )
13          {
14              return componentDescriptor.getConfiguration();
15          }
16  
17          return null;       
18      }
19  }