[ https://issues.apache.org/jira/browse/JSPWIKI-859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Vittor resolved JSPWIKI-859. ---------------------------------- Resolution: Fixed Fix Version/s: 2.10.2 Assignee: David Vittor > Expose the WikiModuleInfo to the plugins and filters > ---------------------------------------------------- > > Key: JSPWIKI-859 > URL: https://issues.apache.org/jira/browse/JSPWIKI-859 > Project: JSPWiki > Issue Type: Improvement > Components: Core & storage > Reporter: David Vittor > Assignee: David Vittor > Priority: Minor > Fix For: 2.10.2 > > > This proposed task is to expose the *jspwiki_module.xml* information about a > plugin to the plugin itself. This would give access to the "<script>" and > "<stylesheet>" resources that can be configured here. > In the interface ModuleManager > There is an interface method with: > * public abstract Collection modules(); > I think we should add another interface method: > * public abstract WikiModuleInfo getModule(String moduleName); > This could be implemented by the *DefaultPluginManager* and > *DefaultFilterManager* and *EditorManager* classes as the below respectively: > {noformat} > public WikiPluginInfo getModule(String moduleName) { > return m_pluginClassMap.get(moduleName); > } > public PageFilterInfo getModule(String moduleName) { > return m_filterClassMap.get(moduleName); > } > public WikiEditorInfo getModule(String moduleName) { > return m_editors.get(moduleName); > } > {noformat} > When I did this there were two other classes that need modification > *TemplateManager* and *PageManager*. These can both be implemented to return > null. > {noformat} > public WikiModuleInfo getModule(String moduleName) { > return null; > } > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)