Using the ActionScript Annotations

Annotate your Java Beans with the following two annotations and use the Maven integration to generate the AS3 code.

LevelRequired
@ActionScriptTypeyes
@ActionScriptPropertyMethodno

@ActionScript Annotation

All annotated classes will be processed and the AS3 implementation and its extension class will be generated. The available properties influence the code generation.

For more details see the http://flex-annotations.aixcept.net/apidocs/de/aixcept/flex2/annotations/ActionScript.html.

PropertyDefaultRequiredDescription
managedfalsenoAdds the Managed Meta Tag
bindablefalsenoAdds the Bindable Meta Tag
extendabletruenoMark the Base class as (non-)final class
externalizablefalsenoImplements IExternaliable interface
remoteObjectfalsenoAdds the RemoteObject Meta Tag
createToStringfalsenoCreated a toString() implementation
inheritfalsenoInherit super class properties
valueObjectfalsenoImplement Cairngorms ValueObject

@ActionScriptProperty Annotation

Only annotated properties get processed and will be generated into AS3 code. As default only public properties will be created (Value Object Pattern), but you can create getter and setter methods by setting either the read and/or write properties to true.

For more details see the http://flex-annotations.aixcept.net/apidocs/de/aixcept/flex2/annotations/ActionScriptProperty.html.

PropertyDefaultRequiredDescription
managedfalsenoAdds the Managed Meta Tag
bindablefalsenoAdds the Bindable Meta Tag
extendabletruenoMark the Base class as (non-)final class
readfalsenoCreate a getter method
writefalsenoCreate a setter method
useDefaultValuefalsenoConvert the Java default as AS3 value