Package org.picocontainer.parameters
Class DefaultConstructorParameter
java.lang.Object
org.picocontainer.parameters.AbstractParameter
org.picocontainer.parameters.DefaultConstructorParameter
- All Implemented Interfaces:
Serializable,Parameter
public final class DefaultConstructorParameter
extends AbstractParameter
implements Parameter, Serializable
Part of the replacement construct for Parameter.ZERO
- Since:
- PicoContainer 2.8
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.picocontainer.Parameter
Parameter.DelegateResolver, Parameter.NotResolved, Parameter.Resolver, Parameter.ValueResolver -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DefaultConstructorParameterThe one and only instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(PicoVisitor visitor) No instantiationbooleanReturns true if the object object is a DEFAULT_CONSTRUCTOR object.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.toString()voidverify(PicoContainer container, ComponentAdapter<?> adapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) Verify that the Parameter can satisfy the expected type using the containerMethods inherited from class org.picocontainer.parameters.AbstractParameter
isResolvable, resolveInstanceMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.picocontainer.Parameter
isResolvable, resolveInstance
-
Field Details
-
INSTANCE
The one and only instance
-
-
Constructor Details
-
DefaultConstructorParameter
public DefaultConstructorParameter()
-
-
Method Details
-
accept
No instantiation -
resolve
public Parameter.Resolver resolve(PicoContainer container, ComponentAdapter<?> forAdapter, ComponentAdapter<?> injecteeAdapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) Description copied from interface:ParameterCheck if the Parameter can satisfy the expected type using the container.- Specified by:
resolvein interfaceParameter- Parameters:
container- the container from which dependencies are resolved.forAdapter- theComponentAdapterthat 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- @returntrueif the component parameter can be resolved.
-
verify
public void verify(PicoContainer container, ComponentAdapter<?> adapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) Description copied from interface:ParameterVerify that the Parameter can satisfy the expected type using the container- Specified by:
verifyin interfaceParameter- Parameters:
container- the container from which dependencies are resolved.adapter- theComponentAdapterthat is asking for the verificationexpectedType- the required typeexpectedNameBinding- Expected parameter nameuseNames-binding-
-
toString
-
equals
Returns true if the object object is a DEFAULT_CONSTRUCTOR object.
-