# mohansgithub/addressbook architecture

> Architecture diagram of the GitHub repository mohansgithub/addressbook, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mohansgithub/addressbook
- Repository: https://github.com/mohansgithub/addressbook

## Overview

This repository is a Vaadin address-book tutorial: users open the application and work with contact records. The tree identifies its UI, form, service, and contact model, but their implementation excerpts were not provided, so their internal links are shown as unverified. The sampled utility package is a separate internal layer for sorting, parameter conversion, property loading, and error reporting. Utility dependencies are supported by the source index; no database or external service is evidenced.

Main entry points: [`src/main/java/com/edurekademo/utilities/LoggerStackTraceUtil.java`](https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/LoggerStackTraceUtil.java) (Error Logger), [`src/main/java/com/edurekademo/utilities/CaseInsensitiveComparator.java`](https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/CaseInsensitiveComparator.java) (Case Comparator), [`src/main/java/com/edurekademo/utilities/PropertyHelper.java`](https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/PropertyHelper.java) (Property Helper), [`src/main/java/com/edurekademo/tutorial/addressbook/AddressbookUI.java`](https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/tutorial/addressbook/AddressbookUI.java) (Addressbook UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_addressbook["Address Book"]
  node_ui["Addressbook UI<br/>[AddressbookUI.java]"]
  node_form["Contact Form<br/>[ContactForm.java]"]
  node_service["Contact Service"]
  node_contact["Contact Model<br/>[Contact.java]"]
end

subgraph group_sorting["Sorting Utilities"]
  node_generic_comparator["Generic Comparator"]
  node_case_comparator["Case Comparator"]
  node_target_method["Getter Name Helper"]
  node_generic_compare["Generic Value Comparator"]
end

subgraph group_configuration["Configuration Utilities"]
  node_property_helper["Property Helper"]
  node_property_loader["Property Loader"]
  node_resource_bundle["Resource Bundle"]
end

subgraph group_conversion["Conversion Utilities"]
  node_logger["Error Logger"]
  node_string_utils["String Parameters"]
  node_hex_utils["Hex Converter"]
end

node_browser(("Browser User"))

node_browser -->|"opens app"| node_ui
node_ui -.->|"uses form"| node_form
node_form -.->|"submits contacts"| node_service
node_service -.->|"uses model"| node_contact
node_case_comparator -->|"extends"| node_generic_comparator
node_generic_comparator -->|"logs errors"| node_logger
node_property_helper -->|"loads properties"| node_property_loader
node_property_helper -->|"logs errors"| node_logger
node_property_loader -->|"logs errors"| node_logger
node_string_utils -->|"logs errors"| node_logger
node_hex_utils -->|"logs errors"| node_logger
node_case_comparator -->|"logs errors"| node_logger

click node_ui "https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/tutorial/addressbook/AddressbookUI.java"
click node_form "https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/tutorial/addressbook/ContactForm.java"
click node_service "https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/tutorial/addressbook/backend/ContactService.java"
click node_contact "https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/tutorial/addressbook/backend/Contact.java"
click node_generic_comparator "https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/GenericComparator.java"
click node_case_comparator "https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/CaseInsensitiveComparator.java"
click node_logger "https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/LoggerStackTraceUtil.java"
click node_string_utils "https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/StringUtilities.java"
click node_hex_utils "https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/HexAsciiConvertor.java"
click node_property_helper "https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/PropertyHelper.java"
click node_property_loader "https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/PropertyLoader.java"
click node_resource_bundle "https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/helper/GenericResourceBundle.java"
click node_target_method "https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/PrepareTargetMethod.java"
click node_generic_compare "https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/GenericComparator.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_ui,node_form,node_service,node_contact,node_browser toneBlue
class node_generic_comparator,node_case_comparator,node_target_method,node_generic_compare toneAmber
class node_property_helper,node_property_loader,node_resource_bundle toneMint
class node_logger,node_string_utils,node_hex_utils toneRose
```

## Components

### Address Book

- [Addressbook UI](https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/tutorial/addressbook/AddressbookUI.java): `src/main/java/com/edurekademo/tutorial/addressbook/AddressbookUI.java`
- [Contact Form](https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/tutorial/addressbook/ContactForm.java): `src/main/java/com/edurekademo/tutorial/addressbook/ContactForm.java`
- [Contact Service](https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/tutorial/addressbook/backend/ContactService.java): `src/main/java/com/edurekademo/tutorial/addressbook/backend/ContactService.java`
- [Contact Model](https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/tutorial/addressbook/backend/Contact.java): `src/main/java/com/edurekademo/tutorial/addressbook/backend/Contact.java`

### Sorting Utilities

- [Generic Comparator](https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/GenericComparator.java): `src/main/java/com/edurekademo/utilities/GenericComparator.java`
- [Case Comparator](https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/CaseInsensitiveComparator.java): `src/main/java/com/edurekademo/utilities/CaseInsensitiveComparator.java`
- [Getter Name Helper](https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/PrepareTargetMethod.java): `src/main/java/com/edurekademo/utilities/PrepareTargetMethod.java`
- [Generic Value Comparator](https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/GenericComparator.java): `src/main/java/com/edurekademo/utilities/GenericComparator.java`

### Configuration Utilities

- [Property Helper](https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/PropertyHelper.java): `src/main/java/com/edurekademo/utilities/PropertyHelper.java`
- [Property Loader](https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/PropertyLoader.java): `src/main/java/com/edurekademo/utilities/PropertyLoader.java`
- [Resource Bundle](https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/helper/GenericResourceBundle.java): `src/main/java/com/edurekademo/helper/GenericResourceBundle.java`

### Conversion Utilities

- [Error Logger](https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/LoggerStackTraceUtil.java): `src/main/java/com/edurekademo/utilities/LoggerStackTraceUtil.java`
- [String Parameters](https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/StringUtilities.java): `src/main/java/com/edurekademo/utilities/StringUtilities.java`
- [Hex Converter](https://github.com/mohansgithub/addressbook/blob/master/src/main/java/com/edurekademo/utilities/HexAsciiConvertor.java): `src/main/java/com/edurekademo/utilities/HexAsciiConvertor.java`

### Other components

- **Browser User**

## Connections

- Browser User → Addressbook UI: opens app (evidence: `README.md`)
- Addressbook UI → Contact Form: uses form
- Contact Form → Contact Service: submits contacts
- Contact Service → Contact Model: uses model
- Case Comparator → Generic Comparator: extends (evidence: `src/main/java/com/edurekademo/utilities/CaseInsensitiveComparator.java`)
- Generic Comparator → Error Logger: logs errors (evidence: `src/main/java/com/edurekademo/utilities/GenericComparator.java`)
- Property Helper → Property Loader: loads properties (evidence: `src/main/java/com/edurekademo/utilities/PropertyHelper.java`)
- Property Helper → Error Logger: logs errors (evidence: `src/main/java/com/edurekademo/utilities/PropertyHelper.java`)
- Property Loader → Error Logger: logs errors (evidence: `src/main/java/com/edurekademo/utilities/PropertyLoader.java`)
- String Parameters → Error Logger: logs errors (evidence: `src/main/java/com/edurekademo/utilities/StringUtilities.java`)
- Hex Converter → Error Logger: logs errors (evidence: `src/main/java/com/edurekademo/utilities/HexAsciiConvertor.java`)
- Case Comparator → Error Logger: logs errors (evidence: `src/main/java/com/edurekademo/utilities/CaseInsensitiveComparator.java`)
