Which design pattern is suitable illustrated problem below? [closed]How to study design patterns?Does functional programming replace GoF design patterns?What is the difference between Builder Design pattern and Factory Design pattern?Efficiency of Java “Double Brace Initialization”?C++ Singleton design patternExamples of GoF Design Patterns in Java's core librariesDesign Patterns web based applicationsWhich design patterns are used on Android?Java design patternLooking for a Design Pattern or Library

Why is this weapon searching for a new owner?

Writing a love interest for my hero

Bash, import output from command as command

What exactly is a marshrutka (маршрутка)?

How can I locate a missing person abroad?

How do email clients "send later" without storing a password?

Should you only use colons and periods in dialogues?

What was redacted in the Yellowhammer report? (Point 15)

Should I leave the first authorship of our paper to the student who did the project whereas I solved it?

Is there any way to land a rover on the Moon without using any thrusters?

Write a function that returns an iterable object of all valid points 4-directionally adjacent to (x, y)

How do I say "quirky" in German without sounding derogatory?

Which is the current decimal separator?

Can I toggle Do Not Disturb on/off on my Mac as easily as I can on my iPhone?

What is my breathable atmosphere composed of?

Can I fix my boots by gluing the soles back on?

Double it your way

Sol Ⅲ = Earth: What is the origin of this planetary naming scheme?

Diffraction of a wave passing through double slits

Does my opponent need to prove his creature has morph?

The Planck constant for mathematicians

A simple problem about Rule

Where to disclose a zero day vulnerability

What is the mathematical notation for rounding a given number to the nearest integer?



Which design pattern is suitable illustrated problem below? [closed]


How to study design patterns?Does functional programming replace GoF design patterns?What is the difference between Builder Design pattern and Factory Design pattern?Efficiency of Java “Double Brace Initialization”?C++ Singleton design patternExamples of GoF Design Patterns in Java's core librariesDesign Patterns web based applicationsWhich design patterns are used on Android?Java design patternLooking for a Design Pattern or Library






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








-2















I am developing a project in spring boot. There are common required steps will be used by all classes in development phase. For example to make connectivity through jdbc from java program to database the first step is load the jdbc driver, second step is create connection object and so on.
The problem is design pattern of my project should restrict the new developer of my project to write new classes in such a way that no requires steps would skip in such condition which design pattern should i use??










share|improve this question














closed as too broad by Lino, Seelenvirtuose, piet.t, Eldelshell, Wai Ha Lee Mar 28 at 10:47


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

























    -2















    I am developing a project in spring boot. There are common required steps will be used by all classes in development phase. For example to make connectivity through jdbc from java program to database the first step is load the jdbc driver, second step is create connection object and so on.
    The problem is design pattern of my project should restrict the new developer of my project to write new classes in such a way that no requires steps would skip in such condition which design pattern should i use??










    share|improve this question














    closed as too broad by Lino, Seelenvirtuose, piet.t, Eldelshell, Wai Ha Lee Mar 28 at 10:47


    Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.





















      -2












      -2








      -2








      I am developing a project in spring boot. There are common required steps will be used by all classes in development phase. For example to make connectivity through jdbc from java program to database the first step is load the jdbc driver, second step is create connection object and so on.
      The problem is design pattern of my project should restrict the new developer of my project to write new classes in such a way that no requires steps would skip in such condition which design pattern should i use??










      share|improve this question














      I am developing a project in spring boot. There are common required steps will be used by all classes in development phase. For example to make connectivity through jdbc from java program to database the first step is load the jdbc driver, second step is create connection object and so on.
      The problem is design pattern of my project should restrict the new developer of my project to write new classes in such a way that no requires steps would skip in such condition which design pattern should i use??







      java design-patterns spring-boot-actuator






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 28 at 10:20









      Sanyam JainSanyam Jain

      32 bronze badges




      32 bronze badges





      closed as too broad by Lino, Seelenvirtuose, piet.t, Eldelshell, Wai Ha Lee Mar 28 at 10:47


      Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.











      closed as too broad by Lino, Seelenvirtuose, piet.t, Eldelshell, Wai Ha Lee Mar 28 at 10:47


      Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









      closed as too broad by Lino, Seelenvirtuose, piet.t, Eldelshell, Wai Ha Lee Mar 28 at 10:47


      Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
























          2 Answers
          2






          active

          oldest

          votes


















          -2
















          Am not sure about design pattern ,but i suggest to have abstract class /interface with all required methods(or steps as told by you to load the jdbc driver, create connection object and so on) and all new classed should extend or implement above abstract class or interface






          share|improve this answer
































            -1
















            I don't think you need a design pattern for this at all. If you are building your project in Spring Boot, just create a data source once and inject it where it is needed.



            Sure, Spring might use the Singleton pattern under the covers to make it happen, but that's not relevant to your problem - the framework solves it for you.






            share|improve this answer

























            • Please add a comment if you downvote an answer. I'd like to understand what's wrong with using Spring to do something that Spring is good at.

              – Riaan Nel
              Mar 28 at 11:30



















            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            -2
















            Am not sure about design pattern ,but i suggest to have abstract class /interface with all required methods(or steps as told by you to load the jdbc driver, create connection object and so on) and all new classed should extend or implement above abstract class or interface






            share|improve this answer





























              -2
















              Am not sure about design pattern ,but i suggest to have abstract class /interface with all required methods(or steps as told by you to load the jdbc driver, create connection object and so on) and all new classed should extend or implement above abstract class or interface






              share|improve this answer



























                -2














                -2










                -2









                Am not sure about design pattern ,but i suggest to have abstract class /interface with all required methods(or steps as told by you to load the jdbc driver, create connection object and so on) and all new classed should extend or implement above abstract class or interface






                share|improve this answer













                Am not sure about design pattern ,but i suggest to have abstract class /interface with all required methods(or steps as told by you to load the jdbc driver, create connection object and so on) and all new classed should extend or implement above abstract class or interface







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 28 at 10:31









                GANESH A SGANESH A S

                311 bronze badge




                311 bronze badge


























                    -1
















                    I don't think you need a design pattern for this at all. If you are building your project in Spring Boot, just create a data source once and inject it where it is needed.



                    Sure, Spring might use the Singleton pattern under the covers to make it happen, but that's not relevant to your problem - the framework solves it for you.






                    share|improve this answer

























                    • Please add a comment if you downvote an answer. I'd like to understand what's wrong with using Spring to do something that Spring is good at.

                      – Riaan Nel
                      Mar 28 at 11:30















                    -1
















                    I don't think you need a design pattern for this at all. If you are building your project in Spring Boot, just create a data source once and inject it where it is needed.



                    Sure, Spring might use the Singleton pattern under the covers to make it happen, but that's not relevant to your problem - the framework solves it for you.






                    share|improve this answer

























                    • Please add a comment if you downvote an answer. I'd like to understand what's wrong with using Spring to do something that Spring is good at.

                      – Riaan Nel
                      Mar 28 at 11:30













                    -1














                    -1










                    -1









                    I don't think you need a design pattern for this at all. If you are building your project in Spring Boot, just create a data source once and inject it where it is needed.



                    Sure, Spring might use the Singleton pattern under the covers to make it happen, but that's not relevant to your problem - the framework solves it for you.






                    share|improve this answer













                    I don't think you need a design pattern for this at all. If you are building your project in Spring Boot, just create a data source once and inject it where it is needed.



                    Sure, Spring might use the Singleton pattern under the covers to make it happen, but that's not relevant to your problem - the framework solves it for you.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Mar 28 at 10:28









                    Riaan NelRiaan Nel

                    1,4403 silver badges13 bronze badges




                    1,4403 silver badges13 bronze badges















                    • Please add a comment if you downvote an answer. I'd like to understand what's wrong with using Spring to do something that Spring is good at.

                      – Riaan Nel
                      Mar 28 at 11:30

















                    • Please add a comment if you downvote an answer. I'd like to understand what's wrong with using Spring to do something that Spring is good at.

                      – Riaan Nel
                      Mar 28 at 11:30
















                    Please add a comment if you downvote an answer. I'd like to understand what's wrong with using Spring to do something that Spring is good at.

                    – Riaan Nel
                    Mar 28 at 11:30





                    Please add a comment if you downvote an answer. I'd like to understand what's wrong with using Spring to do something that Spring is good at.

                    – Riaan Nel
                    Mar 28 at 11:30



                    Popular posts from this blog

                    How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

                    155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

                    Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?