Book Image

Learning Modular Java Programming

By : Tejaswini Mandar Jog
Book Image

Learning Modular Java Programming

By: Tejaswini Mandar Jog

Overview of this book

Modular programming means dividing an application into small parts and then developing it. It is an approach taken by developers to build applications and helps them add efficiency in their development process, thus making it more effective. The book starts with the fundamentals of Modular Programming. Then we move on to the actual implementation, where we teach developers how to divide an application into different modules or layers (such as presentation, execution, security, lifecycle, services, and so on) for better management. Once readers are well-versed in these modules and their development, the book shows how to create bindings in order to join these different modules and form a complete application. Next, the readers will learn how to manage these modules through dependency injection. Later, we move on to testing; readers will learn how to test the different modules of an application. The book ends by teaching readers how to maintain different versions of their application and how to modify it. By the end of the book, readers will have a good understanding of modular programming and will be able to use it to build applications with Java.
Table of Contents (15 chapters)

Summary


Data is collected from the user through the UI; it is handled using the DAO layer but when to insert and how to insert is decided by the business logic layer. In this chapter, we have discussed the parameters such as market rules, situations to be taken care of, and transaction management to set up business rules. We discussed the way Spring handles transaction management using AOP. We demonstrated how to handle declarative transaction management and how to make transaction management more effective with the help of transaction attributes such as isolation level, timeout, or read-only.

Here we have completed the development of all layers. We have also done JUnit testing of the DAO layer. In this chapter, we have looked at the collaboration of layers. If there is code, there is a possibility of melting the code down. This leads to testing of the give and take between two layers.

In the next chapter, we will talk about testing the collaboration between the layers, and the integration...