RE: Instance reference issues

2013-12-09 Thread Stijn de Witt
A 'code smell' in the 'fart sensor impl' LOL!! This stuff is hilarious! :) -Stijn -Original Message- From: Dave Smith [mailto:dave.sm...@candata.com] Sent: zondag 8 december 2013 16:21 To: users@felix.apache.org Subject: Re: Instance reference issues My guess is

Re: Instance reference issues

2013-12-09 Thread Daniel McGreal
Hi Peter, May I ask. what you mean by releasing dependencies? Thanks Dan. On 9 Dec 2013, at 08:30, Peter Kriens wrote: > unbind services // release your dependencies (can be ignored in > static mode)

Re: Instance reference issues

2013-12-09 Thread Peter Kriens
The pattern you are looking for is not handling optionality and dynamics in your code, but leave this part up to DS. DS' static life cycle is: bind services // get your dependencies activate// build up your model ... // do work

Re: Instance reference issues

2013-12-09 Thread Snorre Lothar von Gohren Edwin
Iv noticed an addition to this question. Its also kind comparable to the questions I just passed along about updating bundles. I see that if I dont "reset" the service\api after a start and stop it will point to the old implementation of the service. Therefor I would say that I would have to reset

Re: Instance reference issues

2013-12-08 Thread Snorre Lothar von Gohren Edwin
Haha did not notice that until you pointed out it. Yes im making a machine noticing farts :P. Iv might have been a little fast on the trigger because I had an error which seemed to populate from the service not being callable. But, even if the two instances are different, a class created with a re

Re: Instance reference issues

2013-12-08 Thread Dave Smith
My guess is that the fart sensor component is not setup a immediate , so when it is not required it is deactivated and then reactivated when required. Thus the different instances .. otherwise you have a code smell On Sun, Dec 8, 2013 at 9:44 AM, Snorre Lothar von Gohren Edwin < snorre.ed...

Re: Instance reference issues

2013-12-08 Thread Neil Bartlett
Aside from the name of your service being hilarious to native English speakers, I don't see any issue here :-) Could you please describe in more detail what the problem is? Thanks, Neil On 8 December 2013 at 14:45:49, Snorre Lothar von Gohren Edwin (snorre.ed...@gmail.com) wrote: Hi, im curre

Instance reference issues

2013-12-08 Thread Snorre Lothar von Gohren Edwin
Hi, im currently developing with DS optional dynamic configurations. Im experiencing reference issues which have bubbled down in my application. Meaning that it holds different instances of the service. Providing problems around in the application. Example: At first initiation this is passed arou