Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Added database connection example to Singleton pattern#3451

Open
MADHURI-HS wants to merge 1 commit into
iluwatar:masteriluwatar/java-design-patterns:masterfrom
MADHURI-HS:improve-readmeMADHURI-HS/java-design-patterns:improve-readmeCopy head branch name to clipboard
Open

Added database connection example to Singleton pattern#3451
MADHURI-HS wants to merge 1 commit into
iluwatar:masteriluwatar/java-design-patterns:masterfrom
MADHURI-HS:improve-readmeMADHURI-HS/java-design-patterns:improve-readmeCopy head branch name to clipboard

Conversation

@MADHURI-HS
Copy link
Copy Markdown

Added an additional real-world example for the Singleton pattern.

This improves clarity by including database connection management as a practical use case.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 24, 2026

PR Summary

Expanded the Singleton pattern documentation by adding a real-world example: database connection management. The README now highlights using a single shared instance to manage database connections and clarifies when the Singleton pattern is appropriate.

Changes

File Summary
singleton/README.md Updated README to include a real-world Singleton use case: database connection management ensuring a single shared instance across the application. Adds a bullet under 'Use the Singleton pattern when'.

autogenerated by presubmit.ai

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Review Summary

Commits Considered (1)
  • d2a8516: Added database connection example to Singleton pattern
Files Processed (1)
  • singleton/README.md (1 hunk)
Actionable Comments (0)
Skipped Comments (1)
  • singleton/README.md [81-81]

    best_practice: "Clarify DB usage pattern for Singleton example"

@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open 60 days with no activity.

@github-actions github-actions Bot added the Stale label May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.