Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Java Design pattern
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?
 
Thanks
Posted 18-Dec-12 11:11am
docomo1735
Comments
Sergey Alexandrovich Kryukov at 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.
—SA
Krunal Rohit at 18-Dec-12 21:27pm
   
Design Pattern contains solutions to solve the general problems in business environment...
Sergey Alexandrovich Kryukov at 19-Dec-12 4:04am
   
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.
—SA

1 solution

Rate this: bad
good
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[^]
  Permalink  

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



Advertise | Privacy | Mobile
Web03 | 2.8.141015.1 | Last Updated 19 Dec 2012
Copyright © CodeProject, 1999-2014
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