Hi there.
Could someone please point me in a direction with regards to using different dataaccess strategies depending on if in dev or production.
in dev we might want to read all contetn from static xml files, while in prod we will want to read from a content server.
having many manager using different DAO's can lead to forgetting to change in all places.
Are there best practices for avoiding the below
Code:<bean id="contentDao" class="za.co.domainname.ucm.UcmContentDao" lazy-init="true" /> <bean id="contentDao_" class="za.co.domainname.dao.dummy.DummyContentDao" lazy-init="true" /> <bean id="contentManager" class="za.co.domainname.manager.ContentManager"> <property name="contentDao" ref="contentDao" /> </bean>


Reply With Quote