[Gvsig_english] [ gvSIG 2.0 extension development ] How to implement and register a new DAL provider

luca bianconi lc.bianconi at googlemail.com
Wed Aug 4 01:31:14 CEST 2010


Hi all,

it has past some time since I've started studying gvSIG DAL providing system
and, even if I've received many useful explanations (thanks kind Cèsar!),
read longly the documentation [1] about it, read other DAL providers code,
made coding tests, I'm unfortunately still plenty of doubts.

I'd like asking the community some help to understand some things (I'm very
sorry if some of them could sound very trivial to some of you).

First of all, just a curiosity I'd like to ask Spanish speaking people :
I understand the word "almacèn" as "provider", referred in documentation as
the DAL provider. Is it correct ?

If this is correct, and I want to register a new DAL provider I guess, after
having of course read the whole available (as much as I know) documentation
[1] on fmap.dal, I should use as main reference the chapter "Creación de un
nuevo almacén" [2] .

I've been suggested to give a glance, as example, at the extDwg extension
for better understanding how the registration of a DAL provider works.
I see that in this provider, as in other ones, four classes are always
implemented:

DWGLibrary -> Does it register the provider ? Does it in doPostInitialize()
method ?
DWGFilesystemServerProvider, DWGStoreParameters, DWGStoreProvider -> How do
they work exactly ? What do they do ?

After having implemented it, how can I register the provider with a plugin ?

Which class among those provided by the plugin structure  should I use ?

These are the classes:

- A xxxManager: is the entry point to the API. Provides the main services of
the library.
- A xxxLocator: the responsible to provide access to the single Manager
instance.
- A xxxLibrary: initialization and configuration of the library.
- A xxxService: another interface for the API. You may use it or not
depending on your library's functionality.

Thanks a lot for the help,
Luca


[1]
http://www.gvsig.org/web/projects/gvsig-desktop/docs/devel/org.gvsig.fmap.dal/2.0.0/featurestore
[2]
http://www.gvsig.org/web/projects/gvsig-desktop/docs/devel/org.gvsig.fmap.dal/2.0.0/featurestore/consumer-services/creacion-de-un-nuevo-almacen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserv.gva.es/pipermail/gvsig_internacional/attachments/20100804/c094d5fd/attachment.htm 


More information about the Gvsig_internacional mailing list