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 13:43 Go to next message
Jens Rabe is currently offline Jens Rabe
Messages: 53
Registered: September 2013
Member
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 18:44 Go to previous message
Sopot Cela is currently offline Sopot Cela
Messages: 596
Registered: December 2010
Senior Member

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


Current Time: Thu Jul 24 04:40:51 EDT 2014

Powered by FUDForum. Page generated in 0.03724 seconds