| Article: |
Twelve Best Practices For Spring XML Configurations | |
| Subject: | Domain Objects in ApplicationContext | |
| Date: | 2006-01-25 18:20:33 | |
| From: | bdittmer1 | |
|
"As an example, domain objects should not be created through ApplicationContext." <br/> Has anyone ever seen someone actually do this? |
||
Showing messages 1 through 3 of 3.
-
Domain Objects in ApplicationContext
2006-02-16 09:40:13 markchance1 [View]
I have used this quite a bit in my latest project - but to create "mock" Domain objects for unit testing without the database. The benefit of this is having my collection of test data in one place so that the unit tests in all the various packages can easily access them. The alternative was creator/factory classes, but having them in Spring identified by name/id is pretty handy!
-
Domain Objects in ApplicationContext
2006-01-27 05:54:57 dhubler [View]
For select business objects that come from database via hibernate and need to be injected w/spring beans upon instantiation, we wrote this code. Works incredibly well:
http://scm.sipfoundry.org/rep/sipX/main/sipXconfig/neoconf/src/org/sipfoundry/sipxconfig/common/SpringHibernateInstantiator.java
-
Domain Objects in ApplicationContext
2006-01-25 18:35:37 lizjason [View]
http://jroller.com/page/raible?entry=spring_tips


