001package com.hammurapi.common;
002
003import com.hammurapi.convert.ConvertingService;
004
005/**
006 * Observable converter which leverages the converter framework.
007 * @author Pavel Vlasov
008 *
009 * @param <T>
010 */
011public class DefaultObservableConverter<T> implements ObservableConverter<T> {
012
013        @SuppressWarnings("unchecked")
014        @Override
015        public Observable<T> convert(T obj) {
016                return ConvertingService.convert(obj, Observable.class);
017        }
018
019}