Posts Tagged ‘ spring ’

Spring AOP – Some Recommended Usages

Feb 22nd, 2008 | By | Category: aop, architecture, design, j2ee

Horizontal concerns & SRP We start with an object oriented tenet that states that one class must implement one and only one responsibility. This is called the Single Responsibility Principle (SRP). SRP states for instance that a UserService class can only do “user management” and nothing else. This at the outset may look very obvious […]



Auto wiring Spring Test Cases

Feb 8th, 2008 | By | Category: java

Spring is of late being used universally. Hence the need arises to either Test Spring wiring. Write test cases that are best wired using Spring due to the complexity of the wiring of the objects involved. For instance,let us consider a test case that tests a service which in turn utilizes a Dao that in […]