1 26 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.binder; 27 28 import org.objectweb.openccm.descriptor.componentassembly.Providesport; 29 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.util.CannotResolveReferenceException; 30 import org.omg.CORBA.Object ; 31 import org.omg.Components.InvalidName; 32 33 40 public class ProvidesportDeployer 41 extends ProvidesportDeployerContext 42 { 43 69 public org.omg.CORBA.Object 70 getProvidedPort() 71 throws CannotResolveReferenceException, 72 InvalidName 73 { 74 Providesport ppi = getProvidesport(); 75 Object o; 76 if (getComponentinstantiationDeployer() != null) { 77 o = 78 getComponentinstantiationDeployer().getComponent().provide_facet( 79 ppi.getProvidesidentifier().getValue()); 80 } else { 81 o = 82 org 83 .omg 84 .Components 85 .CCMObjectHelper 86 .narrow(getFindbyDeployer().resolveReference()) 87 .provide_facet(ppi.getProvidesidentifier().getValue()); 88 } 89 getLifeCycleManager().stepEndedSuccessFully(); 90 return o; 91 } 92 } 93 | Popular Tags |