2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
6 package org.apidesign.apifest08.currency;
12 public class DelegatingConvertor implements Convertor {
14 private final Convertor underlyingConvertor;
16 public DelegatingConvertor( final Convertor underlyingConvertor ) {
17 this.underlyingConvertor = underlyingConvertor;
20 protected Convertor getUnderlyingConvertor() {
21 return underlyingConvertor;
24 public ConversionResult convert( final ConversionRequest req ) {
25 return underlyingConvertor.convert( req );