org.picocontainer.internals
Class ComponentSpecification

java.lang.Object
  extended byorg.picocontainer.internals.ComponentSpecification
All Implemented Interfaces:
Serializable

public class ComponentSpecification
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
ComponentSpecification(ComponentFactory componentFactory, Object componentKey, Class comp)
           
ComponentSpecification(ComponentFactory componentFactory, Object componentKey, Class comp, Parameter[] parameters)
           
 
Method Summary
 void addConstantParameterBasedOnType(Class parameter, Object arg)
           
protected  Parameter createDefaultParameter()
           
 boolean equals(Object object)
           
 Class getComponentImplementation()
           
 Object getComponentKey()
           
 Parameter[] getParameters()
           
 Object instantiateComponent(ComponentRegistry componentRegistry)
           
static boolean isAssignableFrom(Class actual, Class requested)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentSpecification

public ComponentSpecification(ComponentFactory componentFactory,
                              Object componentKey,
                              Class comp,
                              Parameter[] parameters)

ComponentSpecification

public ComponentSpecification(ComponentFactory componentFactory,
                              Object componentKey,
                              Class comp)
                       throws PicoIntrospectionException
Method Detail

createDefaultParameter

protected Parameter createDefaultParameter()

getComponentKey

public Object getComponentKey()

getComponentImplementation

public Class getComponentImplementation()

instantiateComponent

public Object instantiateComponent(ComponentRegistry componentRegistry)
                            throws PicoInitializationException
Throws:
PicoInitializationException

isAssignableFrom

public static boolean isAssignableFrom(Class actual,
                                       Class requested)

addConstantParameterBasedOnType

public void addConstantParameterBasedOnType(Class parameter,
                                            Object arg)
                                     throws PicoIntrospectionException
Throws:
PicoIntrospectionException

getParameters

public Parameter[] getParameters()

equals

public boolean equals(Object object)


Copyright © 2003 Codehaus. All Rights Reserved.