com.google.inject.spi
Interface TypeConverter


public interface TypeConverter

Converts constant string values to a different type.

Since:
2.0
Author:
crazybob@google.com (Bob Lee)

Method Summary
 java.lang.Object convert(java.lang.String value, TypeLiteral<?> toType)
          Converts a string value.
 

Method Detail

convert

java.lang.Object convert(java.lang.String value,
                         TypeLiteral<?> toType)
Converts a string value. Throws an exception if a conversion error occurs.



Copyright © 2011. All Rights Reserved.