public final class DefaultConstructorParameter extends AbstractParameter implements Parameter, Serializable
Parameter.DelegateResolver, Parameter.NotResolved, Parameter.Resolver, Parameter.ValueResolver| Modifier and Type | Field and Description |
|---|---|
static DefaultConstructorParameter |
INSTANCE
The one and only instance
|
| Constructor and Description |
|---|
DefaultConstructorParameter() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(PicoVisitor visitor)
No instantiation
|
boolean |
equals(Object other)
Returns true if the object object is a DEFAULT_CONSTRUCTOR object.
|
Parameter.Resolver |
resolve(PicoContainer container,
ComponentAdapter<?> forAdapter,
ComponentAdapter<?> injecteeAdapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding)
Check if the Parameter can satisfy the expected type using the container.
|
String |
toString() |
void |
verify(PicoContainer container,
ComponentAdapter<?> adapter,
Type expectedType,
NameBinding expectedNameBinding,
boolean useNames,
Annotation binding)
Verify that the Parameter can satisfy the expected type using the container
|
isResolvable, resolveInstanceclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisResolvable, resolveInstancepublic static final DefaultConstructorParameter INSTANCE
public DefaultConstructorParameter()
public void accept(PicoVisitor visitor)
public Parameter.Resolver resolve(PicoContainer container, ComponentAdapter<?> forAdapter, ComponentAdapter<?> injecteeAdapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding)
Parameterresolve in interface Parametercontainer - the container from which dependencies are resolved.forAdapter - the ComponentAdapter that is asking for the instanceinjecteeAdapter - the adapter to be injected into (null for N/A)expectedType - the required typeexpectedNameBinding - Expected parameter nameuseNames - should use parameter names for disambiguationbinding - @return true if the component parameter can be resolved.public void verify(PicoContainer container, ComponentAdapter<?> adapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding)
Parameterverify in interface Parametercontainer - the container from which dependencies are resolved.adapter - the ComponentAdapter that is asking for the verificationexpectedType - the required typeexpectedNameBinding - Expected parameter namepublic boolean equals(Object other)
equals in class ObjectObject.equals(java.lang.Object)Copyright © 2003-2014 Codehaus. All Rights Reserved.