org.fudgemsg.mapping
Class ImmutableFudgeObjectDictionary

java.lang.Object
  extended by org.fudgemsg.mapping.FudgeObjectDictionary
      extended by org.fudgemsg.mapping.ImmutableFudgeObjectDictionary

public class ImmutableFudgeObjectDictionary
extends FudgeObjectDictionary

An immutable version of a FudgeObjectDictionary.


Field Summary
 
Fields inherited from class org.fudgemsg.mapping.FudgeObjectDictionary
AUTO_CLASSPATH_SCAN_PROPERTY
 
Constructor Summary
ImmutableFudgeObjectDictionary(FudgeObjectDictionary dictionary)
          Creates a new FudgeObjectDictionary as an immutable clone of an existing one.
 
Method Summary
<T> void
addBuilder(Class<T> clazz, FudgeBuilder<T> builder)
          Always throws an exception - this is an immutable dictionary.
<T> void
addMessageBuilder(Class<T> clazz, FudgeMessageBuilder<? super T> builder)
          Always throws an exception - this is an immutable dictionary.
<T> void
addObjectBuilder(Class<T> clazz, FudgeObjectBuilder<? extends T> builder)
          Always throws an exception - this is an immutable dictionary.
 void setDefaultBuilderFactory(FudgeBuilderFactory defaultBuilderFactory)
          Always throws an exception - this is an immutable dictionary.
 
Methods inherited from class org.fudgemsg.mapping.FudgeObjectDictionary
addAllAnnotatedBuilders, addAnnotatedBuilderClass, addAnnotatedGenericBuilderClass, getDefaultBuilderFactory, getDefaultObjectClass, getMessageBuilder, getObjectBuilder, isDefaultObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableFudgeObjectDictionary

public ImmutableFudgeObjectDictionary(FudgeObjectDictionary dictionary)
Creates a new FudgeObjectDictionary as an immutable clone of an existing one.

Parameters:
dictionary - The FudgeObjectDictionary to clone
Method Detail

setDefaultBuilderFactory

public void setDefaultBuilderFactory(FudgeBuilderFactory defaultBuilderFactory)
Always throws an exception - this is an immutable dictionary.

Overrides:
setDefaultBuilderFactory in class FudgeObjectDictionary
Parameters:
defaultBuilderFactory - the FudgeBuilderFactory to use

addObjectBuilder

public <T> void addObjectBuilder(Class<T> clazz,
                                 FudgeObjectBuilder<? extends T> builder)
Always throws an exception - this is an immutable dictionary.

Overrides:
addObjectBuilder in class FudgeObjectDictionary
Type Parameters:
T - Java type of the objects created by the builder
Parameters:
clazz - the Java class to register the builder against
builder - the builder to register

addMessageBuilder

public <T> void addMessageBuilder(Class<T> clazz,
                                  FudgeMessageBuilder<? super T> builder)
Always throws an exception - this is an immutable dictionary.

Overrides:
addMessageBuilder in class FudgeObjectDictionary
Type Parameters:
T - Java type of the objects processed by the builder
Parameters:
clazz - the Java class to register the builder against
builder - builder to register

addBuilder

public <T> void addBuilder(Class<T> clazz,
                           FudgeBuilder<T> builder)
Always throws an exception - this is an immutable dictionary.

Overrides:
addBuilder in class FudgeObjectDictionary
Type Parameters:
T - Java type of the objects processed by the builder
Parameters:
clazz - the Java class to register the builder against
builder - builder to register


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