001 package biz.hammurapi.convert; 002 003 /** 004 * Closure interface for converters. 005 * @author Pavel 006 */ 007 public interface ConverterClosure { 008 009 /** 010 * Converts source to target type. Target type is known to the closure 011 * but not to the calling code. 012 * @param source 013 * @return Instance of target type. 014 */ 015 Object convert(Object source); 016 }