Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

feat: Add practical real-world examples for Singleton, Builder, and S…#3398

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@gurioh
Copy link

…trategy patterns

Added comprehensive real-world examples with tests and documentation for three commonly used design patterns in enterprise applications.

Singleton Pattern

  • ConfigurationManager: Application settings management
  • LoggerService: Centralized logging system
  • DatabaseConnectionPool: Connection pool management
  • Full test coverage for all implementations
  • Updated README with usage examples and Korean documentation

Builder Pattern

  • UserDTO: Complex user data transfer object
  • HttpRequest: HTTP request builder for API calls
  • EmailMessage: Email composition with attachments
  • Comprehensive tests for all builders
  • Enhanced README with practical use cases

Strategy Pattern

  • PaymentProcessor: Payment processing system
  • CreditCardPayment: Credit card payment strategy
  • BankTransferPayment: Bank transfer strategy
  • PayPalPayment: PayPal integration strategy
  • Complete test suite for payment strategies
  • Updated README with e-commerce payment example

All examples include:

  • Production-ready code with validation
  • Comprehensive JUnit 5 tests
  • Detailed Javadoc documentation
  • Korean and English README sections
  • Real-world use cases and best practices

Pull Request Template

What does this PR do?

…trategy patternsAdded comprehensive real-world examples with tests and documentation for threecommonly used design patterns in enterprise applications.## Singleton Pattern- ConfigurationManager: Application settings management- LoggerService: Centralized logging system- DatabaseConnectionPool: Connection pool management- Full test coverage for all implementations- Updated README with usage examples and Korean documentation## Builder Pattern- UserDTO: Complex user data transfer object- HttpRequest: HTTP request builder for API calls- EmailMessage: Email composition with attachments- Comprehensive tests for all builders- Enhanced README with practical use cases## Strategy Pattern- PaymentProcessor: Payment processing system- CreditCardPayment: Credit card payment strategy- BankTransferPayment: Bank transfer strategy- PayPalPayment: PayPal integration strategy- Complete test suite for payment strategies- Updated README with e-commerce payment exampleAll examples include:- Production-ready code with validation- Comprehensive JUnit 5 tests- Detailed Javadoc documentation- Korean and English README sections- Real-world use cases and best practices
@github-actions
Copy link

Analyzing changes in this PR...

This might take a few minutes, please wait

📥 Commits

Analyzing changes from base (ede37bd) to latest commit (76ce920):

  • 76ce920: feat: Add practical real-world examples for Singleton, Builder, and Strategy patterns

Added comprehensive real-world examples with tests and documentation for three
commonly used design patterns in enterprise applications.

Singleton Pattern

  • ConfigurationManager: Application settings management
  • LoggerService: Centralized logging system
  • DatabaseConnectionPool: Connection pool management
  • Full test coverage for all implementations
  • Updated README with usage examples and Korean documentation

Builder Pattern

  • UserDTO: Complex user data transfer object
  • HttpRequest: HTTP request builder for API calls
  • EmailMessage: Email composition with attachments
  • Comprehensive tests for all builders
  • Enhanced README with practical use cases

Strategy Pattern

  • PaymentProcessor: Payment processing system
  • CreditCardPayment: Credit card payment strategy
  • BankTransferPayment: Bank transfer strategy
  • PayPalPayment: PayPal integration strategy
  • Complete test suite for payment strategies
  • Updated README with e-commerce payment example

All examples include:

  • Production-ready code with validation
  • Comprehensive JUnit 5 tests
  • Detailed Javadoc documentation
  • Korean and English README sections
  • Real-world use cases and best practices
📁 Files being considered (22)

🔄 builder/README.md(1 hunk)
➕ builder/src/main/java/com/iluwatar/builder/EmailMessage.java(1 hunk)
➕ builder/src/main/java/com/iluwatar/builder/HttpRequest.java(1 hunk)
➕ builder/src/main/java/com/iluwatar/builder/UserDTO.java(1 hunk)
➕ builder/src/test/java/com/iluwatar/builder/EmailMessageTest.java(1 hunk)
➕ builder/src/test/java/com/iluwatar/builder/HttpRequestTest.java(1 hunk)
➕ builder/src/test/java/com/iluwatar/builder/UserDTOTest.java(1 hunk)
🔄 singleton/README.md(1 hunk)
➕ singleton/src/main/java/com/iluwatar/singleton/ConfigurationManager.java(1 hunk)
➕ singleton/src/main/java/com/iluwatar/singleton/DatabaseConnectionPool.java(1 hunk)
➕ singleton/src/main/java/com/iluwatar/singleton/LoggerService.java(1 hunk)
➕ singleton/src/test/java/com/iluwatar/singleton/ConfigurationManagerTest.java(1 hunk)
➕ singleton/src/test/java/com/iluwatar/singleton/DatabaseConnectionPoolTest.java(1 hunk)
➕ singleton/src/test/java/com/iluwatar/singleton/LoggerServiceTest.java(1 hunk)
🔄 strategy/README.md(1 hunk)
➕ strategy/src/main/java/com/iluwatar/strategy/payment/BankTransferPayment.java(1 hunk)
➕ strategy/src/main/java/com/iluwatar/strategy/payment/CreditCardPayment.java(1 hunk)
➕ strategy/src/main/java/com/iluwatar/strategy/payment/PayPalPayment.java(1 hunk)
➕ strategy/src/main/java/com/iluwatar/strategy/payment/PaymentProcessor.java(1 hunk)
➕ strategy/src/main/java/com/iluwatar/strategy/payment/PaymentResult.java(1 hunk)
➕ strategy/src/main/java/com/iluwatar/strategy/payment/PaymentStrategy.java(1 hunk)
➕ strategy/src/test/java/com/iluwatar/strategy/payment/PaymentProcessorTest.java(1 hunk)


autogenerated bypresubmit.ai

@guriohgurioh closed thisNov 13, 2025
@guriohgurioh deleted the claude/requirements-analysis-011CV4xvZGXx8DVU17fH6sof branchNovember 13, 2025 10:19
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@gurioh@claude

[8]ページ先頭

©2009-2025 Movatter.jp