org.codehaus.plexus.component.composition
Class ConstructorComponentComposer

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.codehaus.plexus.component.composition.AbstractComponentComposer
          extended by org.codehaus.plexus.component.composition.ConstructorComponentComposer
All Implemented Interfaces:
ComponentComposer, LogEnabled

public class ConstructorComponentComposer
extends AbstractComponentComposer

note:jvz This really indicates there is a flaw in the design of the component composer as constructors will not work. If the component has no default constructor then the component must be created with using the constructor that has requirements as its parameters. So in this case the factory is the means of composition as well. Really you need to collect all the information and create and compose.

Version:
$Id: ConstructorComponentComposer.java 3329 2006-05-23 06:47:54Z jvanzyl $
Author:
Jason van Zyl

Field Summary
 
Fields inherited from interface org.codehaus.plexus.component.composition.ComponentComposer
ROLE
 
Constructor Summary
ConstructorComponentComposer()
           
 
Method Summary
 void assignRequirement(java.lang.Object component, ComponentDescriptor componentDescriptor, ComponentRequirement requirement, PlexusContainer container, java.util.Map compositionContext)
           
 
Methods inherited from class org.codehaus.plexus.component.composition.AbstractComponentComposer
assembleComponent, createCompositionContext, getId, gleanAutowiringRequirements, verifyComponentSuitability
 
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

ConstructorComponentComposer

public ConstructorComponentComposer()
Method Detail

assignRequirement

public void assignRequirement(java.lang.Object component,
                              ComponentDescriptor componentDescriptor,
                              ComponentRequirement requirement,
                              PlexusContainer container,
                              java.util.Map compositionContext)
                       throws CompositionException
Throws:
CompositionException


Copyright © 2001-2006 Codehaus. All Rights Reserved.