com.google.sitebricks.conversion.ConverterRegistry Maven / Gradle / Ivy
The newest version!
package com.google.sitebricks.conversion;
import java.lang.reflect.Type;
import java.util.Collection;
import com.google.common.collect.Multimap;
import com.google.inject.ImplementedBy;
@ImplementedBy(StandardTypeConverter.class)
public interface ConverterRegistry {
void register(Converter, ?> converter);
Multimap> getConvertersByTarget();
Multimap> getConvertersBySource();
Collection> converter(Type source, Type target);
}