| org.picocontainer.Parameter
All known Subclasses: org.picocontainer.parameters.CollectionComponentParameter, org.picocontainer.parameters.BasicComponentParameter, org.picocontainer.parameters.ConstantParameter,
Method Summary | |
void | accept(PicoVisitor visitor) Accepts a visitor for this Parameter. | boolean | isResolvable(PicoContainer container, ComponentAdapter adapter, Class expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) Check if the Parameter can satisfy the expected type using the container. | T | resolveInstance(PicoContainer container, ComponentAdapter adapter, Class<T> expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) Retrieve the object from the Parameter that satisfies the expected type. | void | verify(PicoContainer container, ComponentAdapter adapter, Class expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) |
accept | void accept(PicoVisitor visitor)(Code) | | Accepts a visitor for this Parameter. The method is normally called by visiting a
ComponentAdapter , that
cascades the
also down to all its
.
Parameters: visitor - the visitor. |
isResolvable | boolean isResolvable(PicoContainer container, ComponentAdapter adapter, Class expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding)(Code) | | Check if the Parameter can satisfy the expected type using the container.
Parameters: container - the container from which dependencies are resolved. Parameters: adapter - the ComponentAdapter that is asking for the instance Parameters: expectedType - the required type Parameters: expectedNameBinding - Expected parameter name Parameters: useNames - Parameters: binding - true if the component parameter can be resolved. |
resolveInstance | T resolveInstance(PicoContainer container, ComponentAdapter adapter, Class<T> expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding)(Code) | | Retrieve the object from the Parameter that satisfies the expected type.
Parameters: container - the container from which dependencies are resolved. Parameters: adapter - the ComponentAdapter that is asking for the instance Parameters: expectedType - the type that the returned instance needs to match. Parameters: expectedNameBinding - Expected parameter name Parameters: useNames - Parameters: binding - the instance or null if no suitable instance can be found. throws: PicoCompositionException - if a referenced component could not be instantiated. |
verify | void verify(PicoContainer container, ComponentAdapter adapter, Class expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding)(Code) | | Verify that the Parameter can satisfy the expected type using the container
Parameters: container - the container from which dependencies are resolved. Parameters: adapter - the ComponentAdapter that is asking for the verification Parameters: expectedType - the required type Parameters: expectedNameBinding - Expected parameter name Parameters: useNames - Parameters: binding - throws: PicoCompositionException - if parameter and its dependencies cannot be resolved |
|
|