Adding a Backend Data Store

From OpenOffice.org Wiki

Jump to: navigation, search


PAGE_TITLE: QWRkaW5nIGEgQmFja2VuZCBEYXRhIFN0b3Jl

The configuration management components select and access a data store according to parameters passed at runtime or specified in file configmgr(.ini|rc).

The parameter BackendService (ini-file entry: CFG_BackendService) specifies an UNO service or implementation name. This name is used to create a service instance that is used as backend. It must implement either service com.sun.star.configuration.backend.Backend or service com.sun.star.configuration.backend.SingleBackend. If service SingleBackend is discovered, a com.sun.star.configuration.backend.BackendAdapter is created, which implements service Backend on top of a SingleBackend. By default, a com.sun.star.configuration.backend.SingleBackendAdapter is used; a different implementation can be specified by the BackendWrapper (ini-file entry: CFG_BackendWrapper) parameter.

You can provide your own implementation of services com.sun.star.configuration.backend.Backend, com.sun.star.configuration.backend.SingleBackend or com.sun.star.configuration.backend.BackendAdapter to access a different data store.

You can use your own backend as the default backend within OpenOffice.org by changing configmg(.ini|rc) to name your implementations instead of the default backends. You can use your own backend for selected data only by creating a custom com.sun.star.configuration.ConfigurationProvider with arguments that override the default parameters.

We are working on providing an implementation of com.sun.star.configuration.backend.Backend that allows combining layers from different different data stores in a flexible manner. This feature will become available in a future version of OpenOffice.org. For more information, visit http://util.openoffice.org.

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
Collection