1 28 package org.objectweb.carol.rmi.jonathan.jeremie; 29 30 import org.omg.IOP.ServiceContext ; 31 32 import org.objectweb.jeremie.services.handler.api.Service; 33 import org.objectweb.jonathan.apis.kernel.Context; 34 import org.objectweb.jonathan.apis.kernel.JonathanException; 35 36 import org.objectweb.carol.util.configuration.ConfigurationRepository; 37 38 44 public class JeremieCarolHandler implements Service { 45 46 private String name = null; 47 48 52 public JeremieCarolHandler() throws JonathanException { 53 this.name = "jeremie"; 55 } 56 57 61 public ServiceContext getRequestContext(int id, boolean r, byte[] key, Context k) { 62 return null; 63 } 64 65 69 public ServiceContext getReplyContext(int id, Context k) { 70 return null; 71 } 72 73 78 public void handleRequestContext(ServiceContext context, int id, boolean r, byte[] key, Context k) { 79 ConfigurationRepository.setCurrentConfiguration(ConfigurationRepository.getConfiguration(name)); 80 81 } 82 83 88 public void handleReplyContext(ServiceContext context, int id, Context k) { 89 } 91 } | Popular Tags |