public DConfigBeanRoot getDConfigBeanRoot(DDBeanRoot dd) throws ConfigurationException { // If they give us web.xml, return our jboss-web.xml config bean if (configBeans.containsKey(dd.getFilename())) { return (DConfigBeanRoot) configBeans.get(dd.getFilename()); } // Not found, so create it. (lazy initializing) if (dd.getFilename().equals("WEB-INF/web.xml")) { DConfigBeanRoot retval = new WarConfigBeanRoot(dd, deployable); configBeans.put(dd.getFilename(), retval); return retval; } // if they give us some other standard bean, return the jboss specific // None implemented as of now return null; }
public DConfigBeanRoot getDConfigBeanRoot(DDBeanRoot dd) throws ConfigurationException { // If they give us web.xml, return our jboss-web.xml config bean if (configBeans.containsKey(dd.getFilename())) { return (DConfigBeanRoot)configBeans.get(dd.getFilename()); } // Not found, so create it. (lazy initializing) if (dd.getFilename().equals("WEB-INF/web.xml")) { DConfigBeanRoot retval = new WarConfigBeanRoot(dd, deployable); configBeans.put(dd.getFilename(), retval); return retval; } // if they give us some other standard bean, return the jboss specific // None implemented as of now return null; }
public void removeDConfigBean(DConfigBeanRoot bean) throws BeanNotFoundException { String key = bean.getDDBean().getRoot().getFilename(); if (configBeans.containsKey(key)) { System.out.println("its here... not anymore"); configBeans.remove(key); } else { throw new BeanNotFoundException("BNF"); } }
public void removeDConfigBean(DConfigBeanRoot bean) throws BeanNotFoundException { String key = bean.getDDBean().getRoot().getFilename(); if (configBeans.containsKey(key)) { configBeans.remove(key); } else { throw new BeanNotFoundException(bean.getDDBean().getXpath()); } }