KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > l2 > msg > ObjectSyncMessageFactory


1 /*
2  * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.l2.msg;
5
6 import com.tc.l2.context.ManagedObjectSyncContext;
7
8 public class ObjectSyncMessageFactory {
9
10   public static ObjectSyncMessage createObjectSyncMessageFrom(ManagedObjectSyncContext mosc) {
11     ObjectSyncMessage msg = new ObjectSyncMessage(ObjectSyncMessage.MANAGED_OBJECT_SYNC_TYPE);
12     msg.initialize(mosc.getLookupIDs(), mosc.getDNACount(), mosc.getSerializedDNAs(), mosc.getObjectSerializer(), mosc.getRootsMap());
13     return msg;
14   }
15
16 }
17
Popular Tags