سؤال

When mapping Java data object to Flex value objects the code works even though the java classes do not implement Serializable.

So even though code will work without it, should it? As in is it good practise to make sure that all data object classes implement Serializable when you wish to use BlazeDS for mapping.

What are the benifits if any to implementing Serializable?

هل كانت مفيدة؟

المحلول

The answer is NO. Serializable interface is used for Java native serialization. AMF serialization has nothing common with it and is used for serializing and deserializing Flash player data. Moreover you'll not find any information about Serializable in BlazeDS docs.

You can check, that AMF is implemented in BlazeDS libraries.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top