1 26 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.binder; 27 28 import org.objectweb.openccm.descriptor.componentassembly.beans.ConnecteventBeanImpl; 30 import org.objectweb.openccm.descriptor.componentassembly.beans.ConnectinterfaceBeanImpl; 31 import org.objectweb.openccm.descriptor.componentassembly.beans.ConnectionsBeanImpl; 32 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.HandlerBase; 33 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.InitializationError; 34 42 public class ConnectionsDeployerHandler 43 extends HandlerBase 44 { 45 private ConnectionsDeployer _deploy; 51 52 75 public Object 76 getInstance(ConnectionsBeanImpl connect) 77 throws InitializationError 78 { 79 if(_deploy==null){ 80 _deploy=new ConnectionsDeployer(); 81 applyCommonConfig(_deploy); 82 _deploy.connectConnections(connect); 83 for(java.util.Iterator i=connect.getConnecteventList().iterator();i.hasNext(); ){ 84 _deploy.connectConnecteventDeployer 85 ((ConnecteventDeployer)getDeployer((ConnecteventBeanImpl)i.next()) ); 86 } 87 for(java.util.Iterator i=connect.getConnectinterfaceList().iterator();i.hasNext(); ){ 88 _deploy.connectConnectinterfaceDeployer 89 ((ConnectinterfaceDeployer)getDeployer((ConnectinterfaceBeanImpl)i.next()) ); 90 } 91 _deploy.initialize(); 92 } 93 return (_deploy); 94 } 95 } 96 | Popular Tags |