org.fudgemsg.mapping
Class FudgeObjectMessageFactory

java.lang.Object
  extended by org.fudgemsg.mapping.FudgeObjectMessageFactory

Deprecated.

@Deprecated
public class FudgeObjectMessageFactory
extends Object

Converts between Java objects and FudgeFieldContainer messages using the Fudge serialisation framework. This class is provided for convenience, direct use of a FudgeSerializationContext or FudgeDeserializationContext will be more efficient.

This has been deprecated since 0.3, to be removed at the 1.0 release; a couple of utility methods have gone into the FudgeContext to support this.


Constructor Summary
FudgeObjectMessageFactory()
          Deprecated.  
 
Method Summary
static
<T> T
deserializeToObject(Class<T> clazz, FudgeFieldContainer message, FudgeContext context)
          Deprecated. 
static Object deserializeToObject(FudgeFieldContainer message, FudgeContext context)
          Deprecated. 
static
<T> MutableFudgeFieldContainer
serializeToMessage(T obj, FudgeContext context)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FudgeObjectMessageFactory

public FudgeObjectMessageFactory()
Deprecated. 
Method Detail

serializeToMessage

@Deprecated
public static <T> MutableFudgeFieldContainer serializeToMessage(T obj,
                                                                           FudgeContext context)
Deprecated. 

Serialises a Java object to a FudgeFieldContainer message. Use FudgeContext.toFudgeMsg(T) instead.

Type Parameters:
T - Java type
Parameters:
obj - object to serialise
context - the FudgeContext to use
Returns:
the serialised message

deserializeToObject

@Deprecated
public static Object deserializeToObject(FudgeFieldContainer message,
                                                    FudgeContext context)
Deprecated. 

Deserializes a FudgeFieldContainer message to a Java object, trying to determine the type of the object automatically. Use FudgeContext.fromFudgeMsg(FudgeFieldContainer) instead.

Parameters:
message - the Fudge message to deserialize
context - the FudgeContext to use
Returns:
the deserialized object

deserializeToObject

@Deprecated
public static <T> T deserializeToObject(Class<T> clazz,
                                                   FudgeFieldContainer message,
                                                   FudgeContext context)
Deprecated. 

Deserializes a FudgeFieldContainer message to a Java object of type clazz. Use FudgeContext.fromFudgeMsg(Class,FudgeFieldContainer) instead.

Type Parameters:
T - Java type
Parameters:
clazz - the target type to deserialise
message - the message to process
context - the underlying FudgeContext to use
Returns:
the deserialised object


Copyright 2009-Present by OpenGamma Inc. and individual contributors
Released under the Apache License, Version 2.0