com.atlassian.jira.plugin.webfragment.contextproviders
Class MultiContextProvider

java.lang.Object
  extended by com.atlassian.jira.plugin.webfragment.contextproviders.MultiContextProvider
All Implemented Interfaces:
com.atlassian.plugin.web.ContextProvider

public class MultiContextProvider
extends Object
implements com.atlassian.plugin.web.ContextProvider

This is a wrapper to enable you use multiple ContextProviders to provide context to a WebPanel or WebLabel or simalar web fragment. Usage: com.yourorg.jira.myplugin com.yourorg.jira.web.contextproviders.yourfirstcontextprovider A value for the 1st ContextProvider com.yourorg.jira.web.contextproviders.yourfirstcontextprovider A value for the 2nd ContextProvider

Component plugin providers are loaded within the context of the plugin having the key supplied in the "pluginKey" parameter.

Since:
v4.4

Constructor Summary
MultiContextProvider(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.web.WebFragmentHelper webFragmentHelper)
           
 
Method Summary
 Map<String,Object> getContextMap(Map<String,Object> context)
           
 List<com.atlassian.plugin.web.ContextProvider> getCtxProviders()
           
 void init(Map<String,String> params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiContextProvider

public MultiContextProvider(com.atlassian.plugin.PluginAccessor pluginAccessor,
                            com.atlassian.plugin.web.WebFragmentHelper webFragmentHelper)
Method Detail

init

public void init(Map<String,String> params)
          throws com.atlassian.plugin.PluginParseException
Specified by:
init in interface com.atlassian.plugin.web.ContextProvider
Throws:
com.atlassian.plugin.PluginParseException

getContextMap

public Map<String,Object> getContextMap(Map<String,Object> context)
Specified by:
getContextMap in interface com.atlassian.plugin.web.ContextProvider

getCtxProviders

public List<com.atlassian.plugin.web.ContextProvider> getCtxProviders()


Copyright © 2002-2013 Atlassian. All Rights Reserved.