1   package com.atlassian.seraph.ioc;
2   
3   import com.atlassian.seraph.config.SecurityConfig;
4   
5   import java.util.Map;
6   
7   /**
8    * A Noop implementation that returns null for every call
9    */
10  public class NoopComponentLocator implements ComponentLocator
11  {
12      /**
13       * A singleton instance of NoopElevatedSecurityGuard that does nothing!
14       */
15      public static NoopComponentLocator INSTANCE = new NoopComponentLocator();
16  
17      private NoopComponentLocator()
18      {
19      }
20  
21      public <T> T getComponent(final Class<T> iface)
22      {
23          return null;
24      }
25  
26      public void init(final Map<String, String> params, final SecurityConfig config)
27      {
28      }
29  }