Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] postgis & postgres

Woops I meant. CatalogPlugin.getDefault().  The catch with this is that it returns a list of services (usually with a single thing in it).  So here's the full code:

List<IService> found = CatalogPlugin.getDefault().getServiceFactoyr().acquire(params);
if( !found.isEmpty() ){
  return found.get(0).resolve(Datastore.class, progressMonitor);
}

That will return the datastore that works with the parameters.

(I just whipped this up so like before it may take some interpretation to work perfectly)

Jesse

On Oct 17, 2007, at 9:10 AM, Vince Darley wrote:

Catalog.getDefault().getServiceFactory ().acquire( params ).



Back to the top