This content has been marked as final.
Show 2 replies
-
1. Re: Proper way to pass Home objects
gaborj Apr 14, 2010 10:42 PM (in response to purecharger)I really do not understand your point here, but you do not create any EE components with new operator but retrieve reference to them in some way. The way you do this
the best way
depends on your business logic needs. Injection is really the easiest way but others are also not rocket science... If you want to keep some state in any components you can use contexts. You bind components to some context and retrieve them withoutexplicit create
like Component.getInstance(<yourComponent>, true). Conversation context is very useful in most cases... -
2. Re: Proper way to pass Home objects
purecharger Apr 14, 2010 11:10 PM (in response to purecharger)Is there a way to enforce not using the new operator, is that something that everyone writing code needs to know not to do?