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 package org.picocontainer.converters; 009 010 /** 011 * Interface for type converters. 012 * 013 * @author Paul Hammant 014 * @author Michael Rimov 015 */ 016 public interface Converter<T> { 017 018 /** 019 * Performs a conversion between the given parameter value and the target type. 020 * @param parameterValue the string value to convert. 021 * @return the resulting object. 022 */ 023 T convert(String parameterValue); 024 025 }