1 31 package org.objectweb.proactive.core.body.jini; 32 33 import org.objectweb.proactive.core.ProActiveException; 34 import org.objectweb.proactive.core.ProActiveRuntimeException; 35 import org.objectweb.proactive.core.body.ProActiveMetaObjectFactory; 36 import org.objectweb.proactive.core.body.RemoteBodyFactory; 37 import org.objectweb.proactive.core.body.UniversalBody; 38 39 40 74 public class ProActiveJiniMetaObjectFactory extends ProActiveMetaObjectFactory implements java.io.Serializable { 75 76 80 81 82 86 87 88 92 93 94 98 99 100 104 105 106 protected RemoteBodyFactory newRemoteBodyFactorySingleton() { 107 return new RemoteJiniBodyFactoryImpl(); 108 } 109 110 111 112 116 117 118 protected static class RemoteJiniBodyFactoryImpl implements RemoteBodyFactory, java.io.Serializable { 119 public UniversalBody newRemoteBody(UniversalBody body) { 120 try { 121 return new JiniBodyAdapter(body); 123 } catch (ProActiveException e) { 124 throw new ProActiveRuntimeException("Cannot create Jini Remote body adapter ", e); 125 } 126 } 127 } 129 130 131 132 } 133 | Popular Tags |