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.ccm.deployer.base.HandlerBase; 31 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.InitializationError; 32 40 public class ConnecteventDeployerHandler 41 extends HandlerBase 42 { 43 private ConnecteventDeployer _deploy; 49 72 public Object 73 getInstance(ConnecteventBeanImpl connect) 74 throws InitializationError 75 { 76 if(_deploy==null){ 77 _deploy=new ConnecteventDeployer(); 78 _deploy.connectConnectevent(connect); 79 applyCommonConfig(_deploy); 80 if(connect.getConsumesport()!=null) 81 _deploy.connectConsumesportDeployer 82 ((ConsumesportDeployer)getDeployer(connect.getConsumesport())); 83 else if(connect.getExistinginterface()!=null) 84 _deploy.connectExistinginterfaceDeployer 85 ((ExistinginterfaceDeployer)getDeployer(connect.getExistinginterface())); 86 87 if(connect.getPublishesport()!=null) 88 _deploy.connectPublishesportDeployer 89 ((PublishesportDeployer)getDeployer(connect.getPublishesport())); 90 else if(connect.getEmitsport()!=null) 91 _deploy.connectEmitsportDeployer 92 ((EmitsportDeployer)getDeployer(connect.getEmitsport())); 93 _deploy.initialize(); 94 } 95 return (_deploy); 96 } 97 98 } 99 | Popular Tags |