01: /*
02: * Copyright (C) 2003, 2004, 2005 Joe Walnes.
03: * Copyright (C) 2006, 2007 XStream Committers.
04: * All rights reserved.
05: *
06: * The software in this package is published under the terms of the BSD
07: * style license a copy of which has been included with this distribution in
08: * the LICENSE.txt file.
09: *
10: * Created on 26. September 2003 by Joe Walnes
11: */
12: package com.thoughtworks.xstream.converters;
13:
14: /**
15: * Responsible for looking up the correct Converter implementation for a specific type.
16: *
17: * @author Joe Walnes
18: * @see Converter
19: */
20: public interface ConverterLookup {
21:
22: /**
23: * Lookup a converter for a specific type.
24: * <p/>
25: * This type may be any Class, including primitive and array types. It may also be null, signifying
26: * the value to be converted is a null type.
27: */
28: Converter lookupConverterForType(Class type);
29: }
|