Checking the actual compile error from hudson tells a different story:

/home/tomcat/.hudson/jobs/geoserver-1.7.x/workspace/geoserver_17x/web/src/main/java/org/vfny/geoserver/action/validation/ValidationRunnable.java:[140,43]
cannot find symbol
symbol  : method getFeatureSources()
location: interface org.geotools.data.Repository

The getFeatureSources() method returns a Map<String,FeatureSource>
which is used to perform lookup. I am going to check out the GeoServer
1.7.x code and ask it to use the lookup methods now provided.

Jody

On Tue, May 19, 2009 at 12:58 PM, Jody Garnett <[email protected]> wrote:
> 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