com.atlassian.plugin.web
Class NoOpContextProvider
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoOpContextProvider
public NoOpContextProvider()
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.