@Test public void testSourceTargetLookup() { assertNotNull(convertUtilBean.lookup(String.class, Currency.class)); }
@Override public Converter lookup(Class<?> sourceType, Class<?> targetType) { Pair<Class<?>, Class<?>> key = Pair.of(sourceType, targetType); if (bidirectionalConverters.containsKey(key)) { return bidirectionalConverters.get(key); } return super.lookup(sourceType, targetType); }
BidirectionalConvertUtilBean extends ConvertUtilsBean { @Override public Converter lookup(Class<?> sourceType, Class<?> targetType) { Pair<Class<?>, Class<?>> key = Pair.of(sourceType, targetType); if (bidirectionalConverters.containsKey(key)) { return bidirectionalConverters.get(key); } return super.lookup(sourceType, targetType); } }
BidirectionalConvertUtilBean extends ConvertUtilsBean { @Override public Converter lookup(Class<?> sourceType, Class<?> targetType) { Pair<Class<?>, Class<?>> key = Pair.of(sourceType, targetType); if (bidirectionalConverters.containsKey(key)) { return bidirectionalConverters.get(key); } return super.lookup(sourceType, targetType); }  }
BidirectionalConvertUtilBean extends ConvertUtilsBean { @Override public Converter lookup(Class<?> sourceType, Class<?> targetType) { Pair<Class<?>, Class<?>> key = Pair.of(sourceType, targetType); if (bidirectionalConverters.containsKey(key)) { return bidirectionalConverters.get(key); } return super.lookup(sourceType, targetType); }  void register(Class<?> sourceType, Class<?> targetType, Converter converter); @Override Converter lookup(Class<?> sourceType, Class<?> targetType); }
BidirectionalConvertUtilBean extends ConvertUtilsBean { @Override public Converter lookup(Class<?> sourceType, Class<?> targetType) { Pair<Class<?>, Class<?>> key = Pair.of(sourceType, targetType); if (bidirectionalConverters.containsKey(key)) { return bidirectionalConverters.get(key); } return super.lookup(sourceType, targetType); }  void register(Class<?> sourceType, Class<?> targetType, Converter converter); @Override Converter lookup(Class<?> sourceType, Class<?> targetType);  }