public interface TypeBasedConverter
extends org.apache.felix.service.command.Converter
TypeBasedConverter is using a ReifiedType
instead of a Class to make conversion operations.
This have the main advantage of nicely handling generic
types (like List<String>)Object convert(org.apache.felix.gogo.commands.converter.ReifiedType desiredType, Object in) throws Exception
desiredType - The type that the returned object can be assigned toin - The object that must be convertedExceptionCopyright © 2013 OW2 Consortium. All Rights Reserved.