com.atlassian.plugin.web
Class NoOpContextProvider

java.lang.Object
  extended by com.atlassian.plugin.web.NoOpContextProvider
All Implemented Interfaces:
ContextProvider

public class NoOpContextProvider
extends Object
implements ContextProvider

A ContextProvider implementation that just passes the given context back. Used when no Context Provider has been specified in the ModuleDescriptor.


Constructor Summary
NoOpContextProvider()
           
 
Method Summary
 Map<String,Object> getContextMap(Map<String,Object> context)
          Gets the additional context map to make available for the web fragment
 void init(Map<String,String> params)
          Called after creation and autowiring.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpContextProvider

public NoOpContextProvider()
Method Detail

init

public void init(Map<String,String> params)
          throws PluginParseException
Description copied from interface: ContextProvider
Called after creation and autowiring.

Specified by:
init in interface ContextProvider
Parameters:
params - The optional map of parameters specified in XML.
Throws:
PluginParseException

getContextMap

public Map<String,Object> getContextMap(Map<String,Object> context)
Description copied from interface: ContextProvider
Gets the additional context map to make available for the web fragment

Specified by:
getContextMap in interface ContextProvider
Parameters:
context - immutable render context provided by the app.
Returns:
context map for velocity templates


Copyright © 2013 Atlassian. All Rights Reserved.