com.atlassian.plugin.web
Class NoOpContextProvider
java.lang.Object
com.atlassian.plugin.web.NoOpContextProvider
- All Implemented Interfaces:
- ContextProvider
public class NoOpContextProvider
- extends java.lang.Object
- implements ContextProvider
A ContextProvider implementation that just passes the given context back. Used when no Context Provider has
been specified in the ModuleDescriptor.
|
Method Summary |
java.util.Map<java.lang.String,java.lang.Object> |
getContextMap(java.util.Map<java.lang.String,java.lang.Object> context)
Gets the additional context map to make available for the web fragment |
void |
init(java.util.Map<java.lang.String,java.lang.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 |
NoOpContextProvider
public NoOpContextProvider()
init
public void init(java.util.Map<java.lang.String,java.lang.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 java.util.Map<java.lang.String,java.lang.Object> getContextMap(java.util.Map<java.lang.String,java.lang.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 © 2010 Atlassian. All Rights Reserved.