Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Custom data store in uDig.

Hi,

If the Datastore is only going to be used in uDig then you dont need
to worry too much about the FactoryFinder stuff because uDig uses the
eclipse extension mechanism.

That said the issue is mainly causes by the OSGI classloaders.  They
do a lot of work to keep different bundles isolated from one another.
 This is the reason that we dont rely on them any more than necessary
in uDig.  However usually if the jar is in libs it will pick it up.
But I expect it has to do with the classloaders.

May I ask why you want use the Datastore finder to find and create the
Datastore?

Jesse

2009/6/16 Michał Maniecki <mmm@xxxxxxxxxx>:
> Hello everybody.
>
> I'm new to uDig and GeoTools development, and I have a really hard time
> developing my own data store. I have read the developer tutorial on data
> stores on GeoTools page and I think I understand the Factory Spi thing.
> Basicly my problem is, that the class org.geotools.factory.FactoryFinder
> does not see my org.geotools.data.DataStoreFactorySpi resource.
>
> First I created the Spi resource in META-INF/services of the plug-in with
> the class that calls the DataStoreFinder. But it does not work. The Spi
> resource is not visible for the class loader in FactoryFinder class.
>
> I found somewhere a short note that in uDig a project with services must be
> added to the net.refractions.udig.libs project. I created a another plug-in
> with services and added it as a depandancy to the net.refractions.udig.libs
> project. This also does not work.
>
> I managed to make it work by, exporting the plug-in with services to JAR,
> and then adding it directly to net.refractions.udig.libs (just like all the
> GeoTools jars are). This may work, but it's not the way I want it to stay.
>
> Can you help me with this? What is the proper way to create your own data
> store? Or maybe you could point me to some example of creating a data store
> (but not in GeoTools by themselves, in uDig). I'm using Eclipse 3.4 and uDig
> 1.1.1
>
> Thanks.
>
>
> <mailto:udig-devel@xxxxxxxxxxxxxxxxxxxxx>
>
> --
> Michał Maniecki
> Software Programmer
>
> Globema Sp. z o.o., ul. Rostafińskich 4, 02-593 Warszawa, Poland
> tel. (+48) 22 848 73 13 w. 61, fax (+48) 22 848 68 83
> www.globema.com.pl
>
> Treść tej wiadomości może zawierać prawnie chronione informacje poufne.
> Jeśli otrzymaliście ją Państwo przez pomyłkę, prosimy o niezwłoczne
> powiadomienie o tym nadawcy oraz jej usunięcie z Państwa komputera, bez
> wykonywania, dystrybuowania lub zatrzymywania jakiejkolwiek jej kopii.
>
> This message may contain confidential information protected by law. If you
> have received this message by mistake, please immediately inform the sender
> of the mistake and delete this message from your system without making,
> distributing or retaining any copies of it.
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>


Back to the top