1 31 package org.objectweb.proactive.core.body.rmi; 32 33 import org.apache.log4j.Logger; 34 import org.objectweb.proactive.core.ProActiveException; 35 import org.objectweb.proactive.core.ProActiveRuntimeException; 36 import org.objectweb.proactive.core.body.ProActiveMetaObjectFactory; 37 import org.objectweb.proactive.core.body.RemoteBodyFactory; 38 import org.objectweb.proactive.core.body.UniversalBody; 39 40 public class ProActiveRmiMetaObjectFactory extends ProActiveMetaObjectFactory implements java.io.Serializable { 41 42 protected static Logger logger = Logger.getLogger(ProActiveRmiMetaObjectFactory.class.getName()); 43 44 45 49 50 51 52 protected RemoteBodyFactory newRemoteBodyFactorySingleton() { 53 return new RemoteRmiBodyFactoryImpl(); 54 } 55 56 57 58 59 60 61 65 66 67 protected static class RemoteRmiBodyFactoryImpl implements RemoteBodyFactory, java.io.Serializable { 68 public UniversalBody newRemoteBody(UniversalBody body) { 69 try { 70 return new org.objectweb.proactive.core.body.rmi.RemoteBodyAdapter(body); 71 } catch (ProActiveException e) { 72 throw new ProActiveRuntimeException("Cannot create Remote body adapter ", e); 73 } 74 } 75 } 77 78 79 80 } 81 | Popular Tags |