Gabriel Roldán a écrit :
> - Using Hints to pass "context" to a factory. Case being passing a set of 
> prefix:namespace mappings to FilterFactory in order to make it namespace 
> aware. As the prefixes mappings may change from invocation to invocation, it 
> makes no sense to cache the factory instance. Case being WFS requests using 
> different prefixes to refer to the same namespaces.

Yes, Hints can be used for that (at least technically). We already do something
similar for JNDI name in EPSG authority factory.

Current FactoryRegistry implementation (actually its FactoryCreator subclass)
cache every factory it creates using WeakReference. If this is a unwanted
overhead, we may add a mechanism for avoiding that for some factory type.


> - Using Hints to pass a given GeometryFactory instance to a DataStoreFactory. 
> Rationale being client code wanting to use geometry factory configured a 
> given way, as to use a given precision model, coordseq factory or even pass a 
> factory that produces geometries which already implement GeneralPath or 
> whatever needed to directly render them without further conversion.

Yes.

        Martin


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to