|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fudgemsg.FudgeContextConfiguration
public abstract class FudgeContextConfiguration
Abstraction of FudgeContext
customization operations, such as registering user defined
types or a specific taxonomy resolver. This can be used with FudgeContext.setConfiguration(org.fudgemsg.FudgeContextConfiguration...)
to inject configuration into a context through Bean based frameworks such as Spring, or allow
different components of an application to be composed to register a complete set of types.
Constructor Summary | |
---|---|
FudgeContextConfiguration()
|
Method Summary | |
---|---|
static FudgeContextConfiguration |
compose(FudgeContextConfiguration... configurations)
Creates a composite configuration object that calls methods from the supplied objects in the order given. |
FudgeContextConfiguration |
compose(FudgeContextConfiguration runBefore)
Creates a composite configuration object that calls methods from the supplied configuration before those from this one. |
void |
configureFudgeContext(FudgeContext fudgeContext)
Updates any aspects of the context. |
void |
configureFudgeObjectDictionary(FudgeObjectDictionary dictionary)
Updates the given dictionary to customize it for an application. |
void |
configureFudgeTypeDictionary(FudgeTypeDictionary dictionary)
Updates the given dictionary to customize it for an application. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FudgeContextConfiguration()
Method Detail |
---|
public void configureFudgeTypeDictionary(FudgeTypeDictionary dictionary)
dictionary
- the dictionary to customizepublic void configureFudgeObjectDictionary(FudgeObjectDictionary dictionary)
dictionary
- the dictionary to customizepublic void configureFudgeContext(FudgeContext fudgeContext)
configureFudgeTypeDictionary(org.fudgemsg.FudgeTypeDictionary)
and configureFudgeObjectDictionary(org.fudgemsg.mapping.FudgeObjectDictionary)
methods.
fudgeContext
- the context to configurepublic FudgeContextConfiguration compose(FudgeContextConfiguration runBefore)
a, b, c
, the composite c.compose (b.compose (a))
will apply operations
from a
, then b
, and finally c
. A more efficient method however would
be to use FudgeContextConfiguration.compose (a, b, c)
.
runBefore
- configuration to apply before this objects configuration
public static FudgeContextConfiguration compose(FudgeContextConfiguration... configurations)
configurations
- the configuration objects to apply, in the order to apply them
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |