1 26 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.binder; 27 28 import org.omg.Components.CCMHome; 29 30 37 public class HomeinterfaceDeployer 38 extends HomeinterfaceDeployerContext 39 { 40 66 public org.omg.Components.CCMHome 67 getHome() 68 throws CannotResolveHomeInterfaceException 69 { 70 CCMHome home=null; 71 72 if(getHomeplacementDeployer()!=null) 73 home= getHomeplacementDeployer().getHome(); 74 else if(getFindbyDeployer()!=null) 75 try{ home=org.omg.Components. 77 CCMHomeHelper.narrow(getFindbyDeployer().resolveReference()); 78 } 79 catch(Exception e){ 80 throw new CannotResolveHomeInterfaceException(this,e,"Home interface resolution not found"); 81 } 82 getLifeCycleManager().stepEndedSuccessFully(); 83 return home; 84 } 85 } 86 | Popular Tags |