FeatureTypeFactory (the geotools interface) cannot be used with FactoryRegistry and thus made available through CommonFactoryFinder ... it is too "stateful".
If it was just a matter of requiring a type name this would of been fine (and useful) the typename could be supplied as a required Hint (much like GeometryFactory requires a CRS). However: - DefaultFeatureTypeFactory extends - FeatureTypeFactory extends - FeatureTypeBuilder extends - FeatureTypes All of which has way more state then just "name" ... and I cannot figure out how to ask FactoryRegistry not to cache (so I get the same instance back each time). BEFORE: FeatureTypeBuilder created a new internal instance of DefaultFeatureTypeFactory (using the old FactoryFinder). Strangly it would then use an instance of itself to actually build FeatureTypes. AFTER: FeatureTypeBuilder asks CommonFactoryFinder for an instance of FeatureTypeFactory. Right now we will just create one using "new" ... unless someone can tell me how to turn off FactoryRegistry caching. Madness. Jody ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
