|
From: Martin D. <mar...@no...> - 2005-03-07 00:53:37
|
Jody Garnett a =E9crit : > Remember the design problem I am trying to solve - control of=20 > factories. I a proposing we use this hint idea to control how factorie= s=20 > collaborate. So to answer your question *any* and *all* code that uses= =20 > a Factory would use Hints. Sound fine. Maybe there is some exception for classes that expect the=20 factories right as constructor arguments. They are classes that work=20 closely with factories anyway (e.g. WKT parser). However, the hints would be used by the classes that uses FactoryFinder,=20 not by FactoryFinder itself. Do I'm understanding right? >> A small set of Hints on top of RenderingHints.Key (for GridCoverage=20 >> usage) already exists there: >> >> org.geotools.coverage.grid.Hints >> >> Some of those hints are used for J2D-Renderer too, so a better package= =20 >> location may be appropriate. >=20 >=20 > See above this is probably worth a class in the root org.geotools packa= ge. If peoples agree, I could move Hints to some other package (actually=20 merge J2D-Renderer and GridCoverage Hints) and lets peoples extends it=20 with more hints. Martin. |