
Classes | |
| class | BeanData |
Public Member Functions | |
| boolean | canSerialize (Class clazz, Class jsonClazz) |
| ERXBeanSerializer (Class clazz) | |
| Class<?>[] | getJSONClasses () |
| Class<?>[] | getSerializableClasses () |
| Object | marshall (SerializerState state, Object p, Object o) throws MarshallException |
| ObjectMatch | tryUnmarshall (SerializerState state, Class clazz, Object o) throws UnmarshallException |
| Object | unmarshall (SerializerState state, Class clazz, Object o) throws UnmarshallException |
Static Public Member Functions | |
| static BeanData | analyzeBean (Class<?> clazz) throws IntrospectionException |
| static BeanData | getBeanData (Class<?> clazz) throws IntrospectionException |
Static Package Functions | |
| [static initializer] | |
Private Attributes | |
| Class | _clazz |
Static Private Attributes | |
| static Set< String > | _ignoreMethodNames = new HashSet<String>() |
| static Class<?>[] | _JSONClasses = new Class[] {} |
| static Map< Class<?>, BeanData > | beanCache = new HashMap<Class<?>, BeanData>() |
| static final Logger | log = LoggerFactory.getLogger(ERXBeanSerializer.class) |
| static final long | serialVersionUID = 2 |
| ERXBeanSerializer | ( | Class | clazz | ) |
| [static initializer] | ( | ) | [static, package] |
| static BeanData analyzeBean | ( | Class<?> | clazz | ) | throws IntrospectionException [static] |
| boolean canSerialize | ( | Class | clazz, | |
| Class | jsonClazz | |||
| ) |
| static BeanData getBeanData | ( | Class<?> | clazz | ) | throws IntrospectionException [static] |
Gets the bean data from cache if possible, otherwise analyses the bean.
| clazz | The class of the bean to analyse |
| IntrospectionException | If a problem occurs during getting the bean info. |
| Class<?> [] getJSONClasses | ( | ) |
| Class<?> [] getSerializableClasses | ( | ) |
| Object marshall | ( | SerializerState | state, | |
| Object | p, | |||
| Object | o | |||
| ) | throws MarshallException |
| ObjectMatch tryUnmarshall | ( | SerializerState | state, | |
| Class | clazz, | |||
| Object | o | |||
| ) | throws UnmarshallException |
| Object unmarshall | ( | SerializerState | state, | |
| Class | clazz, | |||
| Object | o | |||
| ) | throws UnmarshallException |
Class _clazz [private] |
Set<String> _ignoreMethodNames = new HashSet<String>() [static, private] |
Class<?> [] _JSONClasses = new Class[] {} [static, private] |
Classes that this can serialise to.
TODO: Yay for bloat!
Caches analysed beans
final Logger log = LoggerFactory.getLogger(ERXBeanSerializer.class) [static, private] |
The logger for this class
final long serialVersionUID = 2 [static, private] |
Unique serialisation id.
1.5.8