Search in sources :

Example 16 with Converter

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);
}
Also used : NamedConverter(org.directwebremoting.extend.NamedConverter) Converter(org.directwebremoting.extend.Converter)

Aggregations

Converter (org.directwebremoting.extend.Converter)16 NamedConverter (org.directwebremoting.extend.NamedConverter)16 MarshallException (org.directwebremoting.extend.MarshallException)4 HashMap (java.util.HashMap)3 Map (java.util.Map)3 Iterator (java.util.Iterator)2 OutboundVariable (org.directwebremoting.extend.OutboundVariable)2 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 Method (java.lang.reflect.Method)1 Collection (java.util.Collection)1 SimpleOutboundVariable (org.directwebremoting.dwrp.SimpleOutboundVariable)1 Creator (org.directwebremoting.extend.Creator)1 Property (org.directwebremoting.extend.Property)1