1 16 package org.directwebremoting.impl; 17 18 import java.util.Collection ; 19 import java.util.Iterator ; 20 21 import org.directwebremoting.Container; 22 import org.directwebremoting.extend.InitializingBean; 23 24 28 public abstract class AbstractContainer implements Container 29 { 30 34 protected void callInitializingBeans() 35 { 36 Collection beanNames = getBeanNames(); 37 for (Iterator it = beanNames.iterator(); it.hasNext();) 38 { 39 String name = (String ) it.next(); 40 Object bean = getBean(name); 41 42 if (bean instanceof InitializingBean) 43 { 44 InitializingBean startMeUp = (InitializingBean) bean; 45 startMeUp.afterContainerSetup(this); 46 } 47 } 48 } 49 } 50 | Popular Tags |