Skip to main content


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: 81
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 22:44 Go to previous message
Eclipse UserFriend
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 Mar 28 14:26:55 GMT 2024

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

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

Back to the top