use of org.directwebremoting.extend.Converter in project ma-core-public by infiniteautomation.
the class DefaultConverterManager method addConverter.
/* (non-Javadoc)
* @see org.directwebremoting.ConverterManager#addConverter(java.lang.String, org.directwebremoting.Converter)
*/
public void addConverter(String match, Converter converter) throws IllegalArgumentException {
// Check that we don't have this one already
Converter other = (Converter) converters.get(match);
if (other != null) {
log.warn("Clash of converters for " + match + ". Using " + converter.getClass().getName() + " in place of " + other.getClass().getName());
}
log.debug("- adding converter: " + LocalUtil.getShortClassName(converter.getClass()) + " for " + match);
converters.put(match, converter);
}
Aggregations