1 31 package org.objectweb.proactive.core.body.ibis; 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 ProActiveIbisMetaObjectFactory extends ProActiveMetaObjectFactory implements java.io.Serializable { 75 76 77 84 85 89 90 94 95 96 100 101 102 103 107 108 109 110 protected RemoteBodyFactory newRemoteBodyFactorySingleton() { 111 return new RemoteIbisBodyFactoryImpl(); 112 } 113 114 115 116 117 121 122 123 124 protected static class RemoteIbisBodyFactoryImpl implements RemoteBodyFactory, java.io.Serializable { 125 public UniversalBody newRemoteBody(UniversalBody body) { 126 try { 127 return new IbisRemoteBodyAdapter(body); 129 } catch (ProActiveException e) { 130 throw new ProActiveRuntimeException("Cannot create Ibis Remote body adapter ", e); 131 } 132 } 133 } 135 136 137 } 138 | Popular Tags |