org.codehaus.plexus.component.composition
Class ConstructorComponentComposer
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.component.composition.AbstractComponentComposer
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 6976 2007-10-21 16:11:08Z jvanzyl $
- Author:
- Jason van Zyl
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstructorComponentComposer
public ConstructorComponentComposer()
getId
public String getId()
assignRequirement
public void assignRequirement(Object component,
ComponentDescriptor componentDescriptor,
ComponentRequirement requirement,
PlexusContainer container,
Map compositionContext,
org.codehaus.plexus.classworlds.realm.ClassRealm lookupRealm)
throws CompositionException
- Throws:
CompositionException
Copyright © 2001-2007 Codehaus. All Rights Reserved.