Bleck - sorry about the trouble Andrea.

> getFeatureSources method from the repository.
>
> The problem here is that the semantics is not clear to me. There are data
> store names, ids, namespaces, workspaces, prefixes and I have no idea what
> is what for geotools and geoserver.

This seems to a be a problem with the information model presented by
GeoServer. Christian I remain unconvinved that you should be allowing
your code to reference DataStore from multiple GeoServer workspaces; I
think they are designed be to separate.

That is however a discussion for the geoserver-devel list.

> Sorry, I will leave up this problem to Jody.

> The only thing I could do is to add a method "getDataStores" returning all
> datastores and ValidationRunner can do his job.

That seems to be what is needed; here is my "definition" for it:
    /**
     * List of available DataStore instances; these are considered to be
     * live/connected datastores under the management of the application
     * and should not be closed or otherwise harmed by client code.
     * <p>
     *
     * @return List of Managed DataStore instances
     */
    public List<DataStore> getDataStores();

> Jody, for my registry implementations you could simply implement a method
> throwing an "UnsupportedOperationException", I will investigate later.

Will do - thanks.

In reviewing your DSFinderRepository I notice you have almost the
exact same design as that of DefaultRepository (helper methods to load
in shapefiles; or other datastores indicated by properties files etc).

Jody

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to