org.picocontainer.defaults
Class ConstantParameter

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

public class ConstantParameter
extends 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.12 $
Author:
Jon Tirsén, Aslak Hellesøy

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

Constructor Detail

ConstantParameter

public ConstantParameter(Object value)
Method Detail

resolveAdapter

public ComponentAdapter resolveAdapter(PicoContainer picoContainer)
                                throws AssignabilityRegistrationException,
                                       NotConcreteRegistrationException
Specified by:
resolveAdapter in interface Parameter
Throws:
AssignabilityRegistrationException
NotConcreteRegistrationException


Copyright © 2003-2004 Codehaus. All Rights Reserved.