1 26 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.binder; 27 28 import org.objectweb.openccm.descriptor.componentassembly.beans.ConnectinterfaceBeanImpl; 30 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.HandlerBase; 31 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.InitializationError; 32 40 public class ConnectinterfaceDeployerHandler 41 extends HandlerBase 42 { 43 private ConnectinterfaceDeployer _deploy; 49 public Object 65 getInstance(ConnectinterfaceBeanImpl connect) 66 throws InitializationError 67 { 68 if(_deploy==null){ 69 _deploy=new ConnectinterfaceDeployer(); 70 applyCommonConfig(_deploy); 71 72 _deploy.connectConnectinterface(connect); 73 if(connect.getComponentsupportedinterface()!=null) 74 _deploy.connectComponentsupportedinterfaceDeployer 75 ((ComponentsupportedinterfaceDeployer)getDeployer 76 (connect.getComponentsupportedinterface())); 77 if(connect.getExistinginterface()!=null) 78 _deploy.connectExistinginterfaceDeployer 79 ((ExistinginterfaceDeployer)getDeployer 80 (connect.getExistinginterface())); 81 if(connect.getHomeinterface()!=null) 82 _deploy.connectHomeinterfaceDeployer 83 ((HomeinterfaceDeployer)getDeployer(connect.getHomeinterface())); 84 if(connect.getProvidesport()!=null) 85 _deploy.connectProvidesportDeployer 86 ((ProvidesportDeployer)getDeployer(connect.getProvidesport())); 87 if(connect.getUsesport()!=null) 88 _deploy.connectUsesportDeployer 89 ((UsesportDeployer)getDeployer(connect.getUsesport())); 90 _deploy.initialize(); 91 } 92 93 return (_deploy); 94 } 95 96 } 97 | Popular Tags |