com.sencha.gxt.data.shared.loader
Class AbstractAutoBeanReader<M,B,D>

java.lang.Object
  extended by com.sencha.gxt.data.shared.loader.AbstractAutoBeanReader<M,B,D>
Type Parameters:
M - Expected model type by the Loader that uses this DataReader
B - Intermediate type before getting to M, allowing createReturnData(Object, Object) to further modify the data
D - Incoming data type from the DataProxy
All Implemented Interfaces:
DataReader<M,D>
Direct Known Subclasses:
JsonReader, JsoReader, XmlReader

public abstract class AbstractAutoBeanReader<M,B,D>
extends java.lang.Object
implements DataReader<M,D>

Abstract base class for Readers that turn the incoming data into AutoBeans.


Constructor Summary
AbstractAutoBeanReader(AutoBeanFactory factory, java.lang.Class<B> rootBeanType)
          Creates a new loader.
 
Method Summary
 M read(java.lang.Object loadConfig, D data)
          Reads the raw data and returns the typed data.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAutoBeanReader

public AbstractAutoBeanReader(AutoBeanFactory factory,
                              java.lang.Class<B> rootBeanType)
Creates a new loader.

Parameters:
factory - AutoBeanFactory instance capable of building all of the required classes
rootBeanType - AutoBean based type to represent the base data in the Splittable
Method Detail

read

public M read(java.lang.Object loadConfig,
              D data)
Description copied from interface: DataReader
Reads the raw data and returns the typed data.

Specified by:
read in interface DataReader<M,D>
Parameters:
loadConfig - the load config information
data - the data to read
Returns:
the processed and / or converted data


Copyright © 2012. All Rights Reserved.