Componentizing an application helps you organize code into logical groups, save time from creating duplicate code, and enhance software stability. Use Application and Library documents to create component-based applications, in which you compose loosely coupled code into modular and cohesive projects.
The following figure demonstrates how to convert a project with loosely coupled code into a component-based project.
When you build the application, all dependency libraries are built into G loadable libraries (.gll) along with the top-level application. The following figure shows an example of the build result.
Consider the following guidelines when componentizing an application: