powered by Jive Software

Displaying plugin meta-data

Hi Guys,

What’‘s your recommendation on how to go about displaying the various pieces of meta-data for a given plugin within a jsp (or for that matter, from anywhere outside of the plugin itself)? Simply using new MyPlugin.getName(); doesn’'t work since getName() method call requires that PluginManager be initialized within the plugin, and that can only be done by calling the initializePlugin() method. I suppose I could create a new PluginManager (pointing it to the existing plugin directory), call getPlugins(), find my plugin, and then call the various meta-data methods, but that seems a little hacky.

Any thoughts?

Thanks,

Ryan

Ryan,

I just added methods to let you access this more easily:

XMPPServer.getInstance().getPluginManager()

and PluginManager.getPlugin(String name)

Regards,

Matt

Thanks, Matt.