01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.l2.msg;
06:
07: import com.tc.l2.context.ManagedObjectSyncContext;
08:
09: public class ObjectSyncMessageFactory {
10:
11: public static ObjectSyncMessage createObjectSyncMessageFrom(
12: ManagedObjectSyncContext mosc) {
13: ObjectSyncMessage msg = new ObjectSyncMessage(
14: ObjectSyncMessage.MANAGED_OBJECT_SYNC_TYPE);
15: msg.initialize(mosc.getLookupIDs(), mosc.getDNACount(), mosc
16: .getSerializedDNAs(), mosc.getObjectSerializer(), mosc
17: .getRootsMap(), mosc.getSequenceID());
18: return msg;
19: }
20:
21: }
|