|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fudgemsg.mapping.FudgeObjectDictionary
org.fudgemsg.mapping.ImmutableFudgeObjectDictionary
public class ImmutableFudgeObjectDictionary
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 | ||
---|---|---|
|
addBuilder(Class<T> clazz,
FudgeBuilder<T> builder)
Always throws an exception - this is an immutable dictionary. |
|
|
addMessageBuilder(Class<T> clazz,
FudgeMessageBuilder<? super T> builder)
Always throws an exception - this is an immutable dictionary. |
|
|
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 |
---|
public ImmutableFudgeObjectDictionary(FudgeObjectDictionary dictionary)
FudgeObjectDictionary
as an immutable clone of an existing one.
dictionary
- The FudgeObjectDictionary
to cloneMethod Detail |
---|
public void setDefaultBuilderFactory(FudgeBuilderFactory defaultBuilderFactory)
setDefaultBuilderFactory
in class FudgeObjectDictionary
defaultBuilderFactory
- the FudgeBuilderFactory
to usepublic <T> void addObjectBuilder(Class<T> clazz, FudgeObjectBuilder<? extends T> builder)
addObjectBuilder
in class FudgeObjectDictionary
T
- Java type of the objects created by the builderclazz
- the Java class to register the builder againstbuilder
- the builder to registerpublic <T> void addMessageBuilder(Class<T> clazz, FudgeMessageBuilder<? super T> builder)
addMessageBuilder
in class FudgeObjectDictionary
T
- Java type of the objects processed by the builderclazz
- the Java class to register the builder againstbuilder
- builder to registerpublic <T> void addBuilder(Class<T> clazz, FudgeBuilder<T> builder)
addBuilder
in class FudgeObjectDictionary
T
- Java type of the objects processed by the builderclazz
- the Java class to register the builder againstbuilder
- builder to register
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |