org.codehaus.plexus.cdc

Class DefaultComponentDescriptorCreator

public class DefaultComponentDescriptorCreator extends 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 6138 2007-03-17 22:31:20Z handyande $

Author: Jason van Zyl Trygve Laugstøl

UNKNOWN: glean configuration information from types of the parameters but also allow OCL type constraints for validation. We'll hook in something simple like regex as for most cases I think some simple regex could catch most problems. I don't want to have to use MSV or something like that which which triple the size of a deployment.

This is for a single project with a single POM, multiple components with all deps in the POM.

Method Summary
voidmergeDescriptors(File outputDescriptor, List descriptors)
voidprocessSources(File[] sourceDirectories, File outputFile)
voidprocessSources(File[] sourceDirectories, File outputFile, boolean containerDescriptor, ComponentDescriptor[] roleDefaults)
voidwriteDependencies(XMLWriter w, ComponentSetDescriptor componentSetDescriptor)

Method Detail

mergeDescriptors

public void mergeDescriptors(File outputDescriptor, List descriptors)

processSources

public void processSources(File[] sourceDirectories, File outputFile)

processSources

public void processSources(File[] sourceDirectories, File outputFile, boolean containerDescriptor, ComponentDescriptor[] roleDefaults)

writeDependencies

public void writeDependencies(XMLWriter w, ComponentSetDescriptor componentSetDescriptor)
Copyright © 2001-2010 Codehaus. All Rights Reserved.