|
From: JP P. <jp....@ti...> - 2003-09-04 22:37:20
|
Hi, =20 I have a question about design. =20 I have completely separated the web level from the business and persistence ones. Even all beans related to the core business-persistence are declared in applicationContext.xml. The XXXservlet.xml contains only what is related to the UI and web level. I use on the business tier a facade that is the only expected interface to use from the web level. =20 I take care of this and all works fine. But the best would be to find a way to: - Continue to be able to test the classes in a test environment - Deny access to web classes on the business ones except the fa=E7ade. =20 As web controllers and others have or can have an application context, they have the possibility of short cutting the fa=E7ade. They can by example with getBean() find a configured and running DAO. =20 It=92s only a matter of coerce to good practice. Using mainly beans and interfaces makes this a bit harder. =20 Has anyone an idea? =20 Jean-Pierre |