[PostConstruct]

10 views
Skip to first unread message

Fabiano Frizzo

unread,
Feb 14, 2012, 10:01:31 AM2/14/12
to gran...@googlegroups.com
Hello Guys,

I have a doubt here.
The annotation [PostConstruct] should work in the example below?


public class GenericList extends ArrayCollection
{
[Inject]
public var defaultDispatcher:CoreEventDispatcher;

private var _klass:Class;
private var _autoLoad:Boolean = false;

public function GenericList(source:Array=null)
{
super(source);
}

[PostConstruct]
public function postConstruct():void{
trace("postConstruct");
}
}

I am registering the component as.

Spring.getInstance().addComponentWithFactory("historicoContabilList",
GenericList, {klass:HistoricoContabil, autoLoad:true});

Att
Fabiano Frizzo

FFrizzo Labs
(45)3324-4204
(45)9969-7850
(45)9118-7805

mda010

unread,
Feb 24, 2012, 6:03:35 AM2/24/12
to Granite Data Services Forum
Did you include the [PostConstruct] within the keep-as3-metadata
property in the additional compiler arguments?

wdrai

unread,
Mar 5, 2012, 11:02:42 AM3/5/12
to gran...@googlegroups.com
It should work.
There is maybe a special case because your component implements IList but I'm not sure.
Reply all
Reply to author
Forward
0 new messages