(Configuration conf)
| 38 | } |
| 39 | |
| 40 | public static ObjectCache get(Configuration conf) { |
| 41 | ObjectCache objectCache = CACHE.get(conf); |
| 42 | if (objectCache == null) { |
| 43 | LOG.debug("No object cache found for conf=" + conf |
| 44 | + ", instantiating a new object cache"); |
| 45 | objectCache = new ObjectCache(); |
| 46 | CACHE.put(conf, objectCache); |
| 47 | } |
| 48 | return objectCache; |
| 49 | } |
| 50 | |
| 51 | public Object getObject(String key) { |
| 52 | return objectMap.get(key); |