@Test public void testAddConverter() { handler.addConverter(converter); assertEquals(converter, handler.getConverter(String.class)); assertEquals(converter, handler.getConverter(List.class)); }
public synchronized void addConverter(Converter converter) { for(Class klass : converter.getManagedClasses()) { converters.put(klass, converter); } }
ConvertersHandler { public synchronized void addConverter(Converter converter) { for(Class klass : converter.getManagedClasses()) { converters.put(klass, converter); } } }
ConvertersHandler { public synchronized void addConverter(Converter converter) { for(Class klass : converter.getManagedClasses()) { converters.put(klass, converter); } } ConvertersHandler(); }
ConvertersHandler { public synchronized void addConverter(Converter converter) { for(Class klass : converter.getManagedClasses()) { converters.put(klass, converter); } } ConvertersHandler(); synchronized void addConverter(Converter converter); synchronized void addConverters(Converter[] converters); Converter getConverter(Class klass); }
ConvertersHandler { public synchronized void addConverter(Converter converter) { for(Class klass : converter.getManagedClasses()) { converters.put(klass, converter); } } ConvertersHandler(); synchronized void addConverter(Converter converter); synchronized void addConverters(Converter[] converters); Converter getConverter(Class klass);  }