![]() |
|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Plugin configuration persistence
Hello experts,
I have a question regarding the plugin configuration. Maybe I'm blind but the documentation doesn't clearly say who is in charge of loading and saving the configuration settings to a file (or whatever). Is is it A: - Plugin is instantiated - SageTV Core loads the settings from anywhere and calls "setConfigValue" on the plugin for each setting. Or is it this way (B): - Plugin is instantiated and has to read its configuration from a plugin specific mysettings.xml file Thanks Eyk
__________________
Clients: HD200, MediaMVP Capture Cards: Technotrend Budget S-1500 (DVB-S) STVi for XMLTV icons |
#2
|
||||
|
||||
It's more like B. The plugin is responsible for persisting its own config settings, and the core doesn't know or care how you do it. If you like you can save settings to a separate file in whatever format suits your needs. Or you can use Get/SetProperty to save settings as text strings in Sage(Client).properties.
There are a couple of different abstract plugin classes that handle some of this work for you. For instance, the XmlConfig class in my Tools Library lets you define your config settings in an XML file or JAR resource, and automatically saves config values to the properties file using property keys you specify.
__________________
-- Greg |
#3
|
|||
|
|||
Thanks for your answer. I will have a look at your classes.
Eyk
__________________
Clients: HD200, MediaMVP Capture Cards: Technotrend Budget S-1500 (DVB-S) STVi for XMLTV icons |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin | deria | SageTV Customizations | 447 | 12-11-2010 07:38 PM |
Standard plugin configuration and event handling - How? | hingsten | SageTV v7 Customizations | 9 | 07-24-2010 01:27 AM |
Plugin Request: Configuration before install | PLUCKYHD | SageTV Studio | 16 | 07-07-2010 04:43 AM |
MyTheatre DVB Network Encoder Plugin - Your working configuration | svalmorri | Hardware Support | 5 | 09-16-2006 04:59 PM |