IClientPluginAccess and deprecated methods

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

IClientPluginAccess and deprecated methods

Postby IT2Be » Thu Dec 04, 2008 8:06 pm

I switched using 4.0 ServoyCoreLibs to using 4.1 ServoyCoreLibs and noticed more deprecated methods.

However some methods have no documentation anymore and some don't show an alternative.

I have looked back in the release documentation and found three API changes. The below ones were not even mentioned:

IClientPluginAccess No documentation:
flushAllClientsCache(...)
getThreadPool()

IClientPluginAccess No (documented) alternative
getMessage(String i18nKey)
getMessage(String i18nKey, Object[] arguments)
getUserID()
reportError(Component parentComponent, String msg, Object detail)

Vice versa: IForm FormManager.getForm(String formName) is not shown/documented in the API (I could not find it).

An example why this is nasty:
After some searching I find out that getThreadPool is replaced by getExecutor.
I don't know since when/which version this is?
What are potential backward compatibility issues when I start using getExecutor?
What is the difference between getThreadPool().addTask(runnable) and getExecutor().execute(runnable)?

Why did I have to search for the alternative? Well, I attach the javadoc (location) to the build path library so that I have the documentation at hand while coding. Very easy when it works :)

I asked for this before but, with the pace that Servoy versions come it now becomes really necessary to know when methods/interfaces are added and/or deprecated.
Especially of interest since no old api's are published anymore.
Especially of interest when you decide to clean up your code and all of a sudden you break stuff.
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 12 guests

cron