org.progeeks.meta
Class SerializationPolicy

java.lang.Object
  extended by org.progeeks.meta.SerializationPolicy

public class SerializationPolicy
extends java.lang.Object

Configures the serialization policy for meta-object saving and loading globally or on a per-thread basis.

Version:
$Revision: 1.1 $
Author:
Paul Speed

Constructor Summary
SerializationPolicy()
           
 
Method Summary
static SerializationPolicy getContextPolicy()
          Returns the current policy for this thread or the root policy if none has been defined specifically for this thread.
 boolean getFullySerializeObjectMetaClasses()
          Returns true if meta-classes should be fully serialized with meta-objects.
static SerializationPolicy getGlobalPolicy()
          Returns the global serialization policy.
 void setFullySerializeObjectMetaClasses(boolean flag)
          Set to true if meta-classes should be fully serialized with meta-objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializationPolicy

public SerializationPolicy()
Method Detail

getGlobalPolicy

public static SerializationPolicy getGlobalPolicy()
Returns the global serialization policy. This is the policy that is used by new threads.


getContextPolicy

public static SerializationPolicy getContextPolicy()
Returns the current policy for this thread or the root policy if none has been defined specifically for this thread.


setFullySerializeObjectMetaClasses

public void setFullySerializeObjectMetaClasses(boolean flag)
Set to true if meta-classes should be fully serialized with meta-objects. If set to false then only the meta-class names are serialized and it is up to the reader to resolve them to meta-classes. This is useful in cases where the reader and writer have already synched up all of their meta-classes. Defaults to true.


getFullySerializeObjectMetaClasses

public boolean getFullySerializeObjectMetaClasses()
Returns true if meta-classes should be fully serialized with meta-objects. If false then only the meta-class names are serialized and it is up to the reader to resolve them to meta-classes. This is useful in cases where the reader and writer have already synched up all of their meta-classes. Defaults to true.



Copyright © 2002-2003 Paul Speed. All Rights Reserved.