1 23 24 package j2me; 25 26 import org.objectweb.fractal.api.control.BindingController; 27 28 public class ClientImpl implements Main, BindingController { 29 30 private Service service; 31 32 public void main (final String [] args) { 33 service.print("hello world"); 34 } 35 36 public String [] listFc () { 37 return new String [] { "s" }; 38 } 39 40 public Object lookupFc (final String cItf) { 41 if (cItf.equals("s")) { 42 return service; 43 } 44 return null; 45 } 46 47 public void bindFc (final String cItf, final Object sItf) { 48 if (cItf.equals("s")) { 49 service = (Service)sItf; 50 } 51 } 52 53 public void unbindFc (final String cItf) { 54 if (cItf.equals("s")) { 55 service = null; 56 } 57 } 58 } 59 | Popular Tags |