| java.lang.Object org.picocontainer.parameters.BasicComponentParameter
All known Subclasses: org.picocontainer.parameters.ComponentParameter,
BasicComponentParameter | public class BasicComponentParameter implements Parameter,Serializable(Code) | | A BasicComponentParameter should be used to pass in a particular component as argument to a
different component's constructor. This is particularly useful in cases where several
components of the same type have been registered, but with a different key. Passing a
ComponentParameter as a parameter when registering a component will give PicoContainer a hint
about what other component to use in the constructor. This Parameter will never resolve
against a collecting type, that is not directly registered in the PicoContainer itself.
author: Jon Tirsén author: Aslak Hellesøy author: Jörg Schaible author: Thomas Heller |
Method Summary | |
public void | accept(PicoVisitor visitor) Visit the current
Parameter . | public boolean | isResolvable(PicoContainer container, ComponentAdapter adapter, Class expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) Check wether the given Parameter can be statisfied by the container. | public T | resolveInstance(PicoContainer container, ComponentAdapter adapter, Class<T> expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) | public void | verify(PicoContainer container, ComponentAdapter adapter, Class expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) |
BASIC_DEFAULT | final public static BasicComponentParameter BASIC_DEFAULT(Code) | | BASIC_DEFAULT is an instance of BasicComponentParameter using the default constructor.
|
BasicComponentParameter | public BasicComponentParameter(Object componentKey)(Code) | | Expect a parameter matching a component of a specific key.
Parameters: componentKey - the key of the desired addComponent |
BasicComponentParameter | public BasicComponentParameter()(Code) | | Expect any paramter of the appropriate type.
|
|
|