Re: Java library of patterns



joshua.krinsky@xxxxxxxxx writes:


What about ACE in C++? It has classes that provide patterns. An
example would be the Reactor pattern [p.179 Pattern Oriented Software
Architecture Vol.2] implementation in ACE [p.39 C++ Network
Programming Vol.2]. This is the sort of thing I was talking about
(although I'm not looking for a Java version of ACE). If it is
possible to have a library of patterns in C++, shouldn't it be
possible in Java?


What about ACE? It "implements many core patterns for
concurrent communication software." Good for it. So does
java.util.concurrent.*. I'll be happy to declare it a
pattern library.

Spring provides much support for MVC, Inversion of Control,
Data Mapper, and many more. Very much a pattern library.

log4j implements Neil Harrison's Diagnostic Logger pattern,
and is (deservedly) nearly ubiquitous in the the server
programming world.

java.util.Iterator is a perfectly decent implementation
of the Iterator pattern. Also fairly common in Java
programs.


Maybe you could ask for something more specific?



(If I were tasked with finding a "pattern library in
Java" by someone who obviously didn't know what he was
talking about, I'd be tempted to show up at the next
meeting with a copy of Spring and go home early.)


--
Mark Jeffcoat
Austin, TX
.



Relevant Pages

  • Re: Java and good OO practices question
    ... >OO programming. ... >OO (despite being technically allowed within Java)? ... The Visitor pattern, ... The Mediator pattern, with B being the mediator controlling the state ...
    (comp.lang.java.programmer)
  • Re: Simples Rules make creating Big Balls of Mud impossible.
    ... Do you do what I have called "client / service" programming or the Other ... site that does a pretty good job of describing the Layers pattern. ... Services have explicit boundaries -- aka clients: ... without requiring a recompile. ...
    (comp.object)
  • Re: Design problem
    ... > I'm having trouble with what seems like it should be a relatively ... base class or interface and specific instances of shapes. ... That's 'structured programming' polluting your thinking. ... themselves (Template Method pattern). ...
    (comp.object)
  • Re: Struggling to understand Bridge pattern benefits
    ... If I eliminated the Bridge and extended the shape ... Typical OOP is about "programming to an interface" but Bridge is ... DirectX and OpenGL will be much more than twice the work. ... this point a pattern may or may not emerge, ...
    (comp.object)
  • Re: the c# return statement
    ... > Factory pattern with the State pattern. ... > which are derived from SHOULD ALWAYS have a virtual destructor - and you ... HSocket::HSocket(int backLog) ... The important thing with programming is understanding what ...
    (microsoft.public.dotnet.general)