This is Part II of two previous articles! I like to multitask ... and a good designer knows when resuse is possible!
XML Standards as ObjectOriented Code Part I
Transition from Objects to Interfaces to Containers
With respect to XML Standards, in Part I we talked about ways of representing XML Standards using Objects, now we take on a hard problem - taking on an update to a standard! The...
GeoTools loves its interfaces - this drove me mad when I first started using the toolkit. One of the things about
and interface is that you still need a way to create objects, and that is where a factory comes in. A factory is simply
a class with a create method.
BEFORE (aka classes):
public class Foo {
public Foo( int magic ){}
public void doSomething(){ System.out.println( "boo...