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>)| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
convert(org.osgi.service.blueprint.container.ReifiedType desiredType,
java.lang.Object in)
Convert an object to the desired type.
|
java.lang.Object convert(org.osgi.service.blueprint.container.ReifiedType desiredType,
java.lang.Object in)
throws java.lang.Exception
desiredType - The type that the returned object can be assigned toin - The object that must be convertedjava.lang.ExceptionCopyright © 2012 OW2 Consortium. All Rights Reserved.