Ars Machina
Software development isn't just technique, it is an art too

Generic Controller

This package rovides some interfaces that define generic controllers (business rules tier) and a generic implementation of them. This package is completely technology-independent and has no dependencies except Generic DAO. having many similarities with it.

Generic Controller-Spring is a package that provides an controller implementation class with annotation-driven transaction support using Spring Framework.

Interfaces

This package defines three interfaces and one class:

  • ReadableController defines a read-only controller.
  • WriteableController defines a write-only DAO.
  • Controller extends both ReadableDAO and WriteableDAO, defining a read-write controller.
  • ControllerImpl is an abstract class that implements the Controller interface by delegating all method calls to a DAO received through its constructor.

Dependencies