1 26 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.binder; 27 28 import org.objectweb.openccm.descriptor.componentassembly.Consumesport; 29 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.util.CannotResolveReferenceException; 30 import org.omg.Components.InvalidName; 31 32 40 public class ConsumesportDeployer 41 extends ConsumesportDeployerContext 42 { 43 69 public org.omg.Components.EventConsumerBase 70 getConsumer() 71 throws CannotResolveReferenceException, InvalidName 72 { 73 org.omg.Components.CCMObject consumer ; 74 Consumesport cp=getConsumesport(); 75 if(getComponentinstantiationDeployer()!=null) 76 consumer =getComponentinstantiationDeployer().getComponent(); 77 78 else consumer=org.omg.Components. 79 CCMObjectHelper.narrow(getFindbyDeployer().resolveReference()); 80 81 return consumer.get_consumer(cp.getConsumesidentifier().getValue()); 82 } 83 } 84 | Popular Tags |