001/*****************************************************************************
002 * Copyright (c) PicoContainer Organization. All rights reserved.            *
003 * ------------------------------------------------------------------------- *
004 * The software in this package is published under the terms of the BSD      *
005 * style license a copy of which has been included with this distribution in *
006 * the LICENSE.txt file.                                                     *
007 *                                                                           *
008 *****************************************************************************/
009package org.picocontainer.parameters;
010
011import org.picocontainer.PicoContainer;
012import org.picocontainer.ComponentAdapter;
013import org.picocontainer.NameBinding;
014import org.picocontainer.Parameter;
015
016import java.lang.reflect.Type;
017import java.lang.annotation.Annotation;
018
019public abstract class AbstractParameter implements Parameter {
020    
021    @Deprecated
022    public final Object resolveInstance(PicoContainer container, ComponentAdapter<?> forAdapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) {
023        return resolve(container, forAdapter, null, expectedType, expectedNameBinding, useNames, binding).resolveInstance();
024    }
025
026    @Deprecated
027    public final boolean isResolvable(PicoContainer container, ComponentAdapter<?> forAdapter, Type expectedType, NameBinding expectedNameBinding, boolean useNames, Annotation binding) {
028        return resolve(container, forAdapter, null, expectedType, expectedNameBinding, useNames, binding).isResolved();
029    }
030}