1 29 30 package com.caucho.amber.cfg; 31 32 import java.util.HashMap ; 33 34 35 38 public class EmbeddableAttributesConfig { 39 40 private HashMap <String , BasicConfig> _basicMap 42 = new HashMap <String , BasicConfig>(); 43 44 private HashMap <String , TransientConfig> _transientMap 45 = new HashMap <String , TransientConfig>(); 46 47 public BasicConfig getBasic(String name) 48 { 49 return _basicMap.get(name); 50 } 51 52 public void addBasic(BasicConfig basic) 53 { 54 _basicMap.put(basic.getName(), basic); 55 } 56 57 public HashMap <String , BasicConfig> getBasicMap() 58 { 59 return _basicMap; 60 } 61 62 public TransientConfig getTransient(String name) 63 { 64 return _transientMap.get(name); 65 } 66 67 public void addTransient(TransientConfig transientConfig) 68 { 69 _transientMap.put(transientConfig.getName(), transientConfig); 70 } 71 72 public HashMap <String , TransientConfig> getTransientMap() 73 { 74 return _transientMap; 75 } 76 } 77 | Popular Tags |