Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Life cycle of an object constructed via DI
Life cycle of an object constructed via DI [message #1280038] Sat, 29 March 2014 17:43 Go to next message
Jens Rabe is currently offline Jens RabeFriend
Messages: 53
Registered: September 2013
How does an object constructed via DI behave when it is not assigned to a variable or falls out of scope? Is it garbage collected, causing the @PreDestroy code to be run or is it kept alive until the context in which it was constructed is disposed?
Re: Life cycle of an object constructed via DI [message #1280162 is a reply to message #1280038] Sat, 29 March 2014 22:44 Go to previous message
Sopot Cela is currently offline Sopot CelaFriend
Messages: 597
Registered: December 2010
Senior Member

From the top of my head it stays there until the context is disposed.
Previous Topic:Why is restricted?
Next Topic:Prevent source tab from cloning on debug
Goto Forum:

Current Time: Sat Oct 10 01:39:55 GMT 2015

Powered by FUDForum. Page generated in 0.01994 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software