package com.hammurapi.common;

import com.hammurapi.convert.ConvertingService;

/**
 * Observable converter which leverages the converter framework.
 * @author Pavel Vlasov
 *
 * @param <T>
 */
public class DefaultObservableConverter<T> implements ObservableConverter<T> {

	@SuppressWarnings("unchecked")
	@Override
	public Observable<T> convert(T obj) {
		return ConvertingService.convert(obj, Observable.class);
	}

}
