Package org.picocontainer.parameters
Class DefaultConstructorParameter
- java.lang.Object
-
- org.picocontainer.parameters.AbstractParameter
-
- org.picocontainer.parameters.DefaultConstructorParameter
-
- All Implemented Interfaces:
java.io.Serializable
,Parameter
public final class DefaultConstructorParameter extends AbstractParameter implements Parameter, java.io.Serializable
Part of the replacement construct for Parameter.ZERO- Since:
- PicoContainer 2.8
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.picocontainer.Parameter
Parameter.DelegateResolver, Parameter.NotResolved, Parameter.Resolver, Parameter.ValueResolver
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultConstructorParameter
INSTANCE
The one and only instance
-
Constructor Summary
Constructors Constructor Description DefaultConstructorParameter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(PicoVisitor visitor)
No instantiationboolean
equals(java.lang.Object other)
Returns true if the object object is a DEFAULT_CONSTRUCTOR object.Parameter.Resolver
resolve(PicoContainer container, ComponentAdapter<?> forAdapter, ComponentAdapter<?> injecteeAdapter, java.lang.reflect.Type expectedType, NameBinding expectedNameBinding, boolean useNames, java.lang.annotation.Annotation binding)
Check if the Parameter can satisfy the expected type using the container.java.lang.String
toString()
void
verify(PicoContainer container, ComponentAdapter<?> adapter, java.lang.reflect.Type expectedType, NameBinding expectedNameBinding, boolean useNames, java.lang.annotation.Annotation binding)
Verify that the Parameter can satisfy the expected type using the container-
Methods inherited from class org.picocontainer.parameters.AbstractParameter
isResolvable, resolveInstance
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.picocontainer.Parameter
isResolvable, resolveInstance
-
-
-
-
Field Detail
-
INSTANCE
public static final DefaultConstructorParameter INSTANCE
The one and only instance
-
-
Method Detail
-
accept
public void accept(PicoVisitor visitor)
No instantiation
-
resolve
public Parameter.Resolver resolve(PicoContainer container, ComponentAdapter<?> forAdapter, ComponentAdapter<?> injecteeAdapter, java.lang.reflect.Type expectedType, NameBinding expectedNameBinding, boolean useNames, java.lang.annotation.Annotation binding)
Description copied from interface:Parameter
Check if the Parameter can satisfy the expected type using the container.- Specified by:
resolve
in interfaceParameter
- Parameters:
container
- the container from which dependencies are resolved.forAdapter
- theComponentAdapter
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 disambiguation- Returns:
true
if the component parameter can be resolved.
-
verify
public void verify(PicoContainer container, ComponentAdapter<?> adapter, java.lang.reflect.Type expectedType, NameBinding expectedNameBinding, boolean useNames, java.lang.annotation.Annotation binding)
Description copied from interface:Parameter
Verify that the Parameter can satisfy the expected type using the container- Specified by:
verify
in interfaceParameter
- Parameters:
container
- the container from which dependencies are resolved.adapter
- theComponentAdapter
that is asking for the verificationexpectedType
- the required typeexpectedNameBinding
- Expected parameter name
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
Returns true if the object object is a DEFAULT_CONSTRUCTOR object.- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
-