1 24 25 package org.objectweb.dream; 26 27 import java.util.Map ; 28 29 import org.objectweb.dream.message.Message; 30 import org.objectweb.fractal.api.NoSuchInterfaceException; 31 import org.objectweb.fractal.api.control.IllegalBindingException; 32 import org.objectweb.fractal.api.control.IllegalLifeCycleException; 33 34 38 public class PushToPush1Impl extends AbstractComponent implements Push 39 { 40 41 42 Push1 outPush1Itf; 43 44 48 52 public void push(Message message, Map context) throws PushException 53 { 54 outPush1Itf.push1(message, context); 55 } 56 57 61 64 public String [] listFc() 65 { 66 return new String []{Push1.OUT_PUSH_ITF_NAME}; 67 } 68 69 73 public void bindFc(String clientItfName, Object serverItf) 74 throws NoSuchInterfaceException, IllegalBindingException, 75 IllegalLifeCycleException 76 { 77 super.bindFc(clientItfName, serverItf); 78 if (clientItfName.equals(Push1.OUT_PUSH_ITF_NAME)) 79 { 80 outPush1Itf = (Push1) serverItf; 81 } 82 } 83 } | Popular Tags |