org.codehaus.plexus.cdc
Class DefaultComponentDescriptorCreator

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.codehaus.plexus.cdc.DefaultComponentDescriptorCreator
All Implemented Interfaces:
ComponentDescriptorCreator, org.codehaus.plexus.logging.LogEnabled

Deprecated. Use {#link ComponentDescriptorExtractor}.

public class DefaultComponentDescriptorCreator
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements ComponentDescriptorCreator

So, in this case it is easy enough to determine the role and the implementation. We could also employ some secondary checks like looking for particular super classes or whatever. We can always use the @tags to be explicit but in most cases we can probably determine the correct component descriptor without requiring @tags.

Version:
$Id: DefaultComponentDescriptorCreator.java 7273 2008-04-10 15:50:00Z brett $
Author:
Jason van Zyl, Trygve Laugstøl

Field Summary
 
Fields inherited from interface org.codehaus.plexus.cdc.ComponentDescriptorCreator
ROLE
 
Constructor Summary
DefaultComponentDescriptorCreator()
          Deprecated.  
 
Method Summary
 void mergeDescriptors(File outputDescriptor, List descriptors)
          Deprecated.  
 void processSources(File[] sourceDirectories, File outputFile)
          Deprecated.  
 void processSources(File[] sourceDirectories, File outputFile, boolean containerDescriptor, ComponentDescriptor[] roleDefaults)
          Deprecated.  
 void writeDependencies(org.codehaus.plexus.util.xml.XMLWriter w, ComponentSetDescriptor componentSetDescriptor)
          Deprecated. do not use. Signature still here for compilation errors at runtime, but I doubt this is ever called.
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultComponentDescriptorCreator

public DefaultComponentDescriptorCreator()
Deprecated. 
Method Detail

processSources

public void processSources(File[] sourceDirectories,
                           File outputFile)
                    throws ComponentDescriptorCreatorException
Deprecated. 
Specified by:
processSources in interface ComponentDescriptorCreator
Throws:
ComponentDescriptorCreatorException

processSources

public void processSources(File[] sourceDirectories,
                           File outputFile,
                           boolean containerDescriptor,
                           ComponentDescriptor[] roleDefaults)
                    throws ComponentDescriptorCreatorException
Deprecated. 
Specified by:
processSources in interface ComponentDescriptorCreator
Throws:
ComponentDescriptorCreatorException

mergeDescriptors

public void mergeDescriptors(File outputDescriptor,
                             List descriptors)
                      throws ComponentDescriptorCreatorException
Deprecated. 
Specified by:
mergeDescriptors in interface ComponentDescriptorCreator
Throws:
ComponentDescriptorCreatorException

writeDependencies

public void writeDependencies(org.codehaus.plexus.util.xml.XMLWriter w,
                              ComponentSetDescriptor componentSetDescriptor)
Deprecated. do not use. Signature still here for compilation errors at runtime, but I doubt this is ever called.



Copyright © 2001-2011 Codehaus. All Rights Reserved.