org.fudgemsg
Class ImmutableFudgeContext

java.lang.Object
  extended by org.fudgemsg.FudgeContext
      extended by org.fudgemsg.ImmutableFudgeContext
All Implemented Interfaces:
FudgeMessageFactory

public class ImmutableFudgeContext
extends FudgeContext

Immutable wrapper for a FudgeContext that will be used for the global "default", or for use with ImmutableFudgeMsg. It cannot be configured after construction.


Field Summary
 
Fields inherited from class org.fudgemsg.FudgeContext
EMPTY_MESSAGE, EMPTY_MESSAGE_ENVELOPE, GLOBAL_DEFAULT
 
Constructor Summary
ImmutableFudgeContext(FudgeContext context)
          Creates an immutable version of an existing FudgeContext.
 
Method Summary
 void setObjectDictionary(FudgeObjectDictionary objectDictionary)
          Always throws an exception - this is an immutable context.
 void setTaxonomyResolver(TaxonomyResolver taxonomyResolver)
          Always throws an exception - this is an immutable context.
 void setTypeDictionary(FudgeTypeDictionary typeDictionary)
          Always throws an exception - this is an immutable context.
 
Methods inherited from class org.fudgemsg.FudgeContext
createMessageReader, createMessageReader, createMessageWriter, createMessageWriter, createObjectReader, createObjectReader, createObjectWriter, createObjectWriter, createReader, createReader, createWriter, createWriter, deserialize, deserialize, fromFudgeMsg, fromFudgeMsg, getFieldValue, getObjectDictionary, getTaxonomyResolver, getTypeDictionary, newMessage, newMessage, readObject, serialize, serialize, setConfiguration, toByteArray, toByteArray, toFudgeMsg, writeObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableFudgeContext

public ImmutableFudgeContext(FudgeContext context)
Creates an immutable version of an existing FudgeContext. Immutable copies of the type and object dictionaries are taken from the source context.

Parameters:
context - the FudgeContext to base this on
Method Detail

setTaxonomyResolver

public void setTaxonomyResolver(TaxonomyResolver taxonomyResolver)
Always throws an exception - this is an immutable context.

Overrides:
setTaxonomyResolver in class FudgeContext
Parameters:
taxonomyResolver - the TaxonomyResolver to set

setTypeDictionary

public void setTypeDictionary(FudgeTypeDictionary typeDictionary)
Always throws an exception - this is an immutable context.

Overrides:
setTypeDictionary in class FudgeContext
Parameters:
typeDictionary - the new FudgeTypeDictionary

setObjectDictionary

public void setObjectDictionary(FudgeObjectDictionary objectDictionary)
Always throws an exception - this is an immutable context.

Overrides:
setObjectDictionary in class FudgeContext
Parameters:
objectDictionary - the new FudgeObjectDictionary


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