@Test public void testGetConverter() { assertNull(registry.getConverter((Class<?>) null)); assertNull(registry.getConverter(Connection.class)); assertNull(registry.getConverter(Connection.class)); }
@Override public Converter getConverter(Class<?> valueType) { ConverterProvider provider = findProvider(valueType); if (provider == null) { return null; } return provider.createConverter(valueType); }
DefaultConverterRegistry implements ConverterRegistry { @Override public Converter getConverter(Class<?> valueType) { ConverterProvider provider = findProvider(valueType); if (provider == null) { return null; } return provider.createConverter(valueType); } }
DefaultConverterRegistry implements ConverterRegistry { @Override public Converter getConverter(Class<?> valueType) { ConverterProvider provider = findProvider(valueType); if (provider == null) { return null; } return provider.createConverter(valueType); } DefaultConverterRegistry(); }
DefaultConverterRegistry implements ConverterRegistry { @Override public Converter getConverter(Class<?> valueType) { ConverterProvider provider = findProvider(valueType); if (provider == null) { return null; } return provider.createConverter(valueType); } DefaultConverterRegistry(); @SuppressWarnings("unchecked") static List<Class<?>> getSupertypes(Class<?> type); @Override Converter getConverter(Class<?> valueType); final void registerConverter(Converter converter); final void registerConverter(ConverterProvider provider); }
DefaultConverterRegistry implements ConverterRegistry { @Override public Converter getConverter(Class<?> valueType) { ConverterProvider provider = findProvider(valueType); if (provider == null) { return null; } return provider.createConverter(valueType); } DefaultConverterRegistry(); @SuppressWarnings("unchecked") static List<Class<?>> getSupertypes(Class<?> type); @Override Converter getConverter(Class<?> valueType); final void registerConverter(Converter converter); final void registerConverter(ConverterProvider provider);  }