[Biojava-l] Tutorial Suggestion...

Michael L. Heuer heuermh@acm.org
Thu, 25 Apr 2002 12:21:58 -0400 (EDT)


You're right -- it is an instantiation of the flyweight design pattern,
where each flyweight instance is a singleton.

   michael

On Thu, 25 Apr 2002, James Carman wrote:

> In the "Doesn't this all waste memory?" subsection of the "BioJava: Symbols
> and SymbolLists" section of the tutorial, you claim "there are just four
> `singleton' Symbol objects which represent the symbols found in the DNA
> alphabet."  This is not an example of the Singleton design pattern.  It is
> an example of the Flyweight (GoF) design pattern.  Doesn't the phrase "four
> singletons" sound a bit contradictory?  In any case, I do like the design
> and I was asking myself the same question immediately before I read that
> section.
>
> James Carman, President
> Carman Consulting, Inc.
> 1218 Bobwhite Ct.
> Edgewood, KY 41018
> (513) 325-7977
>
>
>
> _______________________________________________
> Biojava-l mailing list  -  Biojava-l@biojava.org
> http://biojava.org/mailman/listinfo/biojava-l
>