1 23 24 package org.objectweb.fractal.adl.bindings; 25 26 import org.objectweb.fractal.api.Component; 27 import org.objectweb.fractal.api.control.BindingController; 28 import org.objectweb.fractal.util.Fractal; 29 30 34 35 public class FractalBindingBuilder implements BindingBuilder { 36 37 41 public void bindComponent ( 42 final int type, 43 final Object client, 44 final String clientItf, 45 final Object server, 46 final String serverItf, 47 final Object context) throws Exception 48 { 49 BindingController bc = Fractal.getBindingController((Component)client); 50 Object itf; 51 if (type == IMPORT_BINDING) { 52 itf = Fractal.getContentController((Component)server).getFcInternalInterface(serverItf); 53 } else { 54 itf = ((Component)server).getFcInterface(serverItf); 55 } 56 bc.bindFc(clientItf, itf); 57 } 58 } 59 | Popular Tags |