com.elasticpath.web.ajax.dwrconverter
Class EpBeanConverter
java.lang.Object
uk.ltd.getahead.dwr.compat.BaseV10Converter
uk.ltd.getahead.dwr.convert.BeanConverter
com.elasticpath.web.ajax.dwrconverter.EpBeanConverter
- All Implemented Interfaces:
- uk.ltd.getahead.dwr.Converter
- Direct Known Subclasses:
- DwrBeanConverter, EpCategoryConverter, EpConstantConverter, EpHibernateExceptionConverter, EpProductConverter, EpProductSkuConverter, EpRuleElementConverter, EpShippingCostCalculationMethodConverter, EpUserPermissionConverter, EpValueTypeConverter
public class EpBeanConverter
- extends uk.ltd.getahead.dwr.convert.BeanConverter
- implements uk.ltd.getahead.dwr.Converter
EpPersistedBeanConverter is a customized bean converter for integration with dwr.
This handles all persisted bean.
|
Method Summary |
java.lang.Object |
convertInbound(java.lang.Class paramType,
uk.ltd.getahead.dwr.InboundVariable inboundVariable,
uk.ltd.getahead.dwr.InboundContext inctx)
Attempt to coerce the data from a string to an Object. |
java.lang.String |
convertOutbound(java.lang.Object data,
java.lang.String varname,
uk.ltd.getahead.dwr.OutboundContext outctx)
Convert the java object to js side. |
| Methods inherited from class uk.ltd.getahead.dwr.convert.BeanConverter |
getConverterManager, getInstanceType, isAvailable, setConverterManager, setExclude, setImplementation, setInclude, setInstanceType |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface uk.ltd.getahead.dwr.Converter |
setConverterManager |
EpBeanConverter
public EpBeanConverter()
convertInbound
public java.lang.Object convertInbound(java.lang.Class paramType,
uk.ltd.getahead.dwr.InboundVariable inboundVariable,
uk.ltd.getahead.dwr.InboundContext inctx)
throws uk.ltd.getahead.dwr.ConversionException
- Attempt to coerce the data from a string to an Object.
- Specified by:
convertInbound in interface uk.ltd.getahead.dwr.Converter- Overrides:
convertInbound in class uk.ltd.getahead.dwr.convert.BeanConverter
- Parameters:
paramType - - The type to convert to.inboundVariable - - The inbound varaiable.inctx - - The inbound context.
- Returns:
- the object
- Throws:
uk.ltd.getahead.dwr.ConversionException - if fails to do the conversion
convertOutbound
public java.lang.String convertOutbound(java.lang.Object data,
java.lang.String varname,
uk.ltd.getahead.dwr.OutboundContext outctx)
throws uk.ltd.getahead.dwr.ConversionException
- Convert the java object to js side.
- Specified by:
convertOutbound in interface uk.ltd.getahead.dwr.Converter- Overrides:
convertOutbound in class uk.ltd.getahead.dwr.convert.BeanConverter
- Parameters:
data - - The object to be converted.varname - - The variable name on the js side.outctx - - The outbound context.
- Returns:
- the string for representation of the object
- Throws:
uk.ltd.getahead.dwr.ConversionException - if fails to do the conversion