View Javadoc

1   package com.atlassian.plugin.web;
2   
3   import com.atlassian.plugin.PluginParseException;
4   
5   import java.util.Map;
6   
7   /**
8    * A {@link ContextProvider} implementation that just passes the given context back. Used when no Context Provider has
9    * been specified in the ModuleDescriptor.
10   */
11  public class NoOpContextProvider implements ContextProvider
12  {
13      public void init(Map<String, String> params) throws PluginParseException
14      {
15      }
16  
17      public Map<String, Object> getContextMap(Map<String, Object> context)
18      {
19          return context;
20      }
21  }