1 31 package org.objectweb.proactive.core.component; 32 33 import java.io.Serializable ; 34 35 36 import org.apache.log4j.Logger; 37 38 import org.objectweb.fractal.api.Interface; 39 40 41 44 public class Binding implements Serializable { 45 protected static Logger logger = Logger.getLogger(Binding.class.getName()); 46 private final Interface clientInterface; 47 private final Interface serverInterface; 48 49 53 public Binding(final Interface clientInterface, final Interface serverInterface) { 54 this.clientInterface = clientInterface; 55 this.serverInterface = serverInterface; 56 } 57 58 61 public Interface getClientInterface() { 62 return clientInterface; 63 } 64 65 66 69 public Interface getServerInterface() { 70 if (logger.isDebugEnabled()) { 71 logger.debug("returning " + serverInterface.getClass().getName()); 72 } 73 return serverInterface; 74 } 75 } | Popular Tags |