Adrian, yes, I think it's confusing too. Actually, my reading of the current geotools API is that FactoryFinder is deprecated and we're meant to be using org.geotools.factory.FactoryRegistry. Anyway, a jiira was recently created for providing an implementation of GeoAPI's CommonFactory interface, http://jira.codehaus.org/browse/GEOT-828, this should simplify things a lot, col
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Jody Garnett > Sent: 27 March 2006 12:41 > To: User-friendly Desktop Internet GIS; GeoTools Devel List > Subject: Re: [udig-devel] Three coding questions > > Adrian Custer wrote: > > 3) uDig/Geotools: How do we use FactoryFinders? > > > > I'm kind of confused by all the Factories, FactoryBuilders and > > FactoryFinders around. It seems there are several > FactoryFinders which > > means we have to find the Finders. Is there an explanation > of what each > > of them do? Is the idea eventually to have a single 'FactoryFinder' > > instance that does really find all the factories for all > the different > > types of objects? > > > > > This idea of a FactoryFinder is really really old (aka GOF era), the > AWTToolkit amounts to a FactoryFinder. > Modern people use a "container" and we are working on setting > geotools > up for that for the geotools 2.3.x release. > > To use a Factory Finder call its static methods and ask it to > locate a > factory for you. How does it find a factory? > Based on the geotools plug-in system (basically what is in your > classpath). For something like uDig that uses a > plugin system that restricts classpath the answer gets hard really > quickly and involves "buddy classloaders". > > For a more detailed account of what is going on in geotools, and why, > try this article. > - > http://docs.codehaus.org/display/GEOTOOLS/Objects%2C+Interface s+and+Factories > > Cheers, > Jody > > _______________________________________________ > User-friendly Desktop Internet GIS (uDig) > http://udig.refractions.net > http://lists.refractions.net/mailman/listinfo/udig-devel > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
