Click here to Skip to main content
12,884,771 members (32,728 online)
Rate this:
Please Sign up or sign in to vote.
See more: Java Design Patterns
Quel patron de conception dois je utiliser si je veux reduire ma dependendance vis-a-vis des plates formes logicielles et materielles sous jacentes?

By google translate it gives

What design pattern should I use if I want to reduce my dependendance vis-a-vis software platforms and material underlying?

Can anyone tell me with example?

Posted 18-Dec-12 11:11am
Sergey Alexandrovich Kryukov 18-Dec-12 19:35pm
No, I don't think so. It depends. And design patterns themselves do not solve the problem where a brain is needed.
Krunal Rohit 18-Dec-12 21:27pm
Design Pattern contains solutions to solve the general problems in business environment...
And? What you say is not 100% accurate: they are generally somewhat more universal than that, and yet, they are not fundamental concepts, more of a practical design and architectural templates. And I see from practice that they are often abused and misused.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Design pattern – Inversion of control and Dependency injection[^]
That's a good article on the topic.

What I sometimes do, is to wrap service providers in a singleton, which I then can call static.
Singleton Pattern in Java[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170424.1 | Last Updated 19 Dec 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100