org.picocontainer.defaults
Class ConstantParameter

java.lang.Object
  extended byorg.picocontainer.defaults.ConstantParameter
All Implemented Interfaces:
Parameter

public class ConstantParameter
extends java.lang.Object
implements Parameter

A ConstantParameter should be used to pass in "constant" arguments to constructors. This includes Strings, Integers or any other object that is not registered in the container.

Version:
$Revision: 1.18 $
Author:
Jon Tirsén, Aslak Hellesøy, Jörg Schaible

Constructor Summary
ConstantParameter(java.lang.Object value)
           
 
Method Summary
 ComponentAdapter resolveAdapter(PicoContainer picoContainer, java.lang.Class expectedType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantParameter

public ConstantParameter(java.lang.Object value)
Method Detail

resolveAdapter

public ComponentAdapter resolveAdapter(PicoContainer picoContainer,
                                       java.lang.Class expectedType)
                                throws AssignabilityRegistrationException,
                                       NotConcreteRegistrationException
Specified by:
resolveAdapter in interface Parameter
Parameters:
picoContainer - the container where dependencies are resolved from
expectedType - the expected (dependant) type
Returns:
a ComponentAdapter
Throws:
AssignabilityRegistrationException
NotConcreteRegistrationException


Copyright © 2003-2004 Codehaus. All Rights Reserved.