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 *****************************************************************************/
009 package org.picocontainer.parameters;
010
011 import org.picocontainer.PicoContainer;
012 import org.picocontainer.ComponentAdapter;
013 import org.picocontainer.NameBinding;
014 import org.picocontainer.Parameter;
015
016 import java.lang.reflect.Type;
017 import java.lang.annotation.Annotation;
018
019 public 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 }