1 12 13 package org.ejtools.jmx.browser.frame; 14 15 16 17 import org.ejtools.adwt.util.DefaultObjectIndexer; 18 19 import org.ejtools.jmx.browser.model.Resource; 20 21 22 23 32 33 public class ResourceIndexer extends DefaultObjectIndexer 34 35 { 36 37 50 51 public Object put(Object key, Object value) 52 53 { 54 55 if (key instanceof Resource) 56 57 { 58 59 return super.put(((Resource) key).getCanonicalName(), value); 60 61 } 62 63 return super.put(key, value); 64 65 } 66 67 68 69 70 71 82 83 public Object remove(Object key) 84 85 { 86 87 if (key instanceof Resource) 88 89 { 90 91 return super.remove(((Resource) key).getCanonicalName()); 92 93 } 94 95 return super.remove(key); 96 97 } 98 99 } 100 101 | Popular Tags |