How to unwire instance created by context.createInstance

2 views
Skip to first unread message

Denis Sazonov

unread,
Apr 23, 2011, 5:49:15 AM4/23/11
to springactio...@googlegroups.com
Hi All.

I have created in runtime an Instance with autowired components as following:

lobbyPresenter = context.createInstance(LobbyPresenterImpl,[lobbyView]);

After some works with this instance I have removed it from memory.

lobbyPresenter = null;

After a lot of time i need to create lobbyPresenter again and call a creation routine once more.

But when I create lobbyPresenter twice it wire all autowired events again. And all events annotated by EventHandler annotations like this [EventHandler(name="JoinedTableEvent")] are autowired again.

I dont find any methods to unwire component when it going to unecessary.

Please help me and advice.







Reply all
Reply to author
Forward
0 new messages