Class 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
    • Constructor Detail

      • DefaultConstructorParameter

        public DefaultConstructorParameter()
    • Method Detail

      • accept

        public void accept​(PicoVisitor visitor)
        No instantiation
        Specified by:
        accept in interface Parameter
        Parameters:
        visitor - the visitor.
      • 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 interface Parameter
        Parameters:
        container - the container from which dependencies are resolved.
        forAdapter - the ComponentAdapter that is asking for the instance
        injecteeAdapter - the adapter to be injected into (null for N/A)
        expectedType - the required type
        expectedNameBinding - Expected parameter name
        useNames - 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 interface Parameter
        Parameters:
        container - the container from which dependencies are resolved.
        adapter - the ComponentAdapter that is asking for the verification
        expectedType - the required type
        expectedNameBinding - Expected parameter name
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Returns true if the object object is a DEFAULT_CONSTRUCTOR object.
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)