public class

NoOpContextProvider

extends Object
implements ContextProvider
java.lang.Object
   ↳ com.atlassian.plugin.web.NoOpContextProvider

Class Overview

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

Summary

Public Constructors
NoOpContextProvider()
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.web.ContextProvider

Public Constructors

public NoOpContextProvider ()

Public Methods

public Map<String, Object> getContextMap (Map<String, Object> context)

Gets the additional context map to make available for the web fragment

Parameters
context immutable render context provided by the app.
Returns
  • context map for velocity templates

public void init (Map<String, String> params)

Called after creation and autowiring.

Parameters
params The optional map of parameters specified in XML.