IServerPlugin: plugin properties

Questions and answers on developing, deploying and using plugins and JavaBeans

IServerPlugin: plugin properties

Postby sdevlin » Wed Jan 19, 2005 2:20 am

Hi,
How can I access the plugin properties that are set from the servoy-admin page? I can see that the properties are written in the servoy.properties files. But how can I get them into my plugin when the application restarts?

Thanks,
Sean
sdevlin
 
Posts: 125
Joined: Tue Apr 13, 2004 3:33 am

Postby IT2Be » Wed Jan 19, 2005 10:18 am

Sean, this is not too difficult. The best way to find it is to take the mail plugin. Here you will find how to do it.

Basically it comes down to the method getSettings() from the interface IServerAccess. getting the property can be done like
Code: Select all
private IServerAccess application;

//after initialization

Object property = application.getSettings().getProperty("property_name");
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 1 guest