The Artima Developer Community
Sponsored Link

Akka Concurrency Forum
Dependency Injection Versus actorFor

1 reply on 1 page. Most recent reply: Nov 9, 2012 11:54 PM by Derek Wyatt

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Lawrence MacFadyen

Posts: 7
Nickname: 84427
Registered: Oct, 2012

Dependency Injection Versus actorFor Posted: Nov 9, 2012 6:04 PM
Reply to this message Reply
Advertisement
In the anti-patterns section you mention too much actorFor, and recommend using DI instead. Can you comment on what sort of DI you refer to, ie. cake pattern, Spring, Traits, etc. and can you point to a good example of what you'd recommend?

Thanks!


Derek Wyatt

Posts: 69
Nickname: dwyatt
Registered: Oct, 2012

Re: Dependency Injection Versus actorFor Posted: Nov 9, 2012 11:54 PM
Reply to this message Reply
Really, whatever works for you should be fine. I'm a cake guy, personally, but if you like something else, then go for it. You can have a look at the Supervision and Deathwatch chapter you can have a look at how I generally like to approach this stuff. Constructor arguments and Actor providers (e.g. the PilotProvider) work pretty well for me.

Cheers,
Derek

Flat View: This topic has 1 reply on 1 page
Topic: where to download the sample code ? Previous Topic   Next Topic Topic:

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use