Difference between revisions of "Documentation/DevGuide/Config/Configuration Data Sources"
From Apache OpenOffice Wiki
< Documentation | DevGuide
OOoWikiBot (Talk | contribs) m (FINAL VERSION FOR L10N) |
|||
(One intermediate revision by one other user not shown) | |||
Line 9: | Line 9: | ||
Creating a view to configuration data is a two-step process. | Creating a view to configuration data is a two-step process. | ||
− | # Connect to a data source by creating an instance of a <idl>com.sun.star.configuration.ConfigurationProvider</idl> | + | # Connect to a data source by creating an instance of a <idl>com.sun.star.configuration.ConfigurationProvider</idl>. |
− | # Ask the provider to create an access object for a specific nodepath in the configuration database using < | + | # Ask the provider to create an access object for a specific nodepath in the configuration database using <idlm>com.sun.star.lang.XMultiServiceFactory:createInstanceWithArguments</idlm>(). The access object can be a <idl>com.sun.star.configuration.ConfigurationAccess</idl> or a <idl>com.sun.star.configuration.ConfigurationUpdateAccess</idl>. |
{{PDL1}} | {{PDL1}} | ||
[[Category:Documentation/Developer's Guide/Configuration Management]] | [[Category:Documentation/Developer's Guide/Configuration Management]] |
Latest revision as of 16:51, 21 December 2020
Creating a view to configuration data is a two-step process.
- Connect to a data source by creating an instance of a com.sun.star.configuration.ConfigurationProvider.
- Ask the provider to create an access object for a specific nodepath in the configuration database using createInstanceWithArguments(). The access object can be a com.sun.star.configuration.ConfigurationAccess or a com.sun.star.configuration.ConfigurationUpdateAccess.
Content on this page is licensed under the Public Documentation License (PDL). |