|
|
|
I have added more documentation for this code here: http://www.flexpasta.com/index.php/2008/05/19/blazeds-with-annotations-for-remote-objects/
from Flex debugger I can see all Excluded or Transient fields and method transfering via network.
@FlexField( fieldType = FlexFieldType.Transient) @FlexField( fieldType = FlexFieldType.Exclude) I expect to get fields only what I declared in my AS bean. Now I have to included unexpected fields in my code to avoid ReferenceError: Error #1056: Cannot create property {FIELD_NAME} on {CLASS_NAME} warnings. Addition and we include/bind annotation for the public variables in Java code? Thanks. David Or if I will mark setter as private in AS file I will get warning in my console:
ReferenceError: Error #1074: Illegal write to read-only property {FIELD_NAME} on {CLASS_NAME} If this is a minor enhancement, we could consider this for Beta 2.
FYI,
SpringSource just came up with Annotation-based configuration of remote destinations in their Spring BlazeDS Integration 1.0.0.RC1 cf. http://www.springsource.org/node/1393 You may also use flex-contrib-spring (available for quite some time now) : http://fna.googlecode.com/svn/trunk/fna/site/flex-contrib-spring/index.html | ||||||||||||||||||||||||||||||||||||||||||||||||||
PropertyProxyRegistry.getRegistry().register(IAnnotatedProxy.class, new AnnotatedBeanProxy());