Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3636658
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:03:40+00:00 2026-05-19T01:03:40+00:00

We are creating auction website. There are different types of auction. and depending on

  • 0

We are creating auction website. There are different types of auction. and depending on type of auction, winner declaration is done.

eg:- *In one type of auction:-User who bids higher wins.
*In other type:- User with minimum bid wins.
*in some type:- owner decides winner.
*In some type:- First 10 bidder wins the auction.

It seems that Strategy Pattern is a good match for designing the module which will decide the “Auction Winner”.

So

Based on the “type of auction”, system will select the appropriate alogrithm to decide the winner.All parameters required by the auction type in order to choose winner will be provided.
I am thinking to use strategy pattern (may be in AOP way) to imlement winnerDeclare module.

The application is based on SpringFramework , could anybody suggest me a elegant design to handle problem mentioned above.
Which pattern should I use? Should I go for AOP ?

I can provide more details if required.

Thank you in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T01:03:40+00:00Added an answer on May 19, 2026 at 1:03 am

    There is not really anything Spring-specific to this question. Yes, the Strategy Pattern is probably the right choice.

    Create a service interface to determine the auction winner and create one or more implementations of it. In your business code, always reference the service interface, not the implementation class, that way you can easily switch implementations (with or without Spring). (Read Joshua Bloch’s Effective Java to better understand programming with interfaces)

    Forget Spring AOP. It solves many problems, but not yours. Your problem is to define the core modules of your application and to wire them together (which is usually done with Spring or another DI container)

    Basically, when you create a service interface, you need to decide ‘What should this thing do?’ And when you implement the interface you decide ‘How should this thing do it?’

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently creating an auction website using asp and vb.net. I want to manipulate
I'm creating an auction style website where users can bid for items. I've into
What gems/technology would be best suited for creating an auction style system where a
I am creating a website in Ruby on Rails. I have a controller action
I'm creating a website using MVC framework (Yii) and I need to dynamically create
I'm having some problems creating a view for a node within my website. The
I'm creating some kind of auction application, and I have to decide what is
I'm creating a website that has routes pretty similar to SO, in that they
I'm trying to create some nice links over my website. I'm creating a search
I am creating a script using Python Mechanize that can login to a website

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.