|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jsefa.common.config.Configuration<R,E>
R
- the type of the TypeMappingRegistryE
- the type of the EntryPointpublic abstract class Configuration<R extends TypeMappingRegistry<?>,E extends EntryPoint<?,?>>
The abstract superclass for configuration object classes. It uses lazy initialization.
A configuration object is used when creating a new IOFactory
. One configuration object can be used for
the creation of multiple factories as each new factory holds its own copy of the configuration object. So the
configuration object can be changed after creating a factory with it without affecting the configuration of the
factory.
Nested Class Summary | |
---|---|
static interface |
Configuration.Defaults
Set of default configuration values. |
Constructor Summary | |
---|---|
protected |
Configuration()
Constructs a new Configuration . |
protected |
Configuration(Configuration<R,E> other)
Constructs a new Configuration as a copy of the given one. |
Method Summary | |
---|---|
abstract Configuration<R,E> |
createCopy()
Creates a copy of this Configuration . |
protected abstract R |
createDefaultTypeMappingRegistry()
Creates the default type mapping registry to be used if none is explicitly given. |
Collection<E> |
getEntryPoints()
Returns the entry points. |
ObjectAccessorProvider |
getObjectAccessorProvider()
Returns the object accessor provider. |
SimpleTypeConverterProvider |
getSimpleTypeConverterProvider()
Returns the simple type converter provider. |
R |
getTypeMappingRegistry()
Returns the type mapping registry. |
ValidationMode |
getValidationMode()
Returns the validation mode. |
ValidatorProvider |
getValidatorProvider()
Returns the validator provider. |
void |
setEntryPoints(Collection<E> entryPoints)
Sets the entry points. |
void |
setObjectAccessorProvider(ObjectAccessorProvider objectAccessorProvider)
Sets the ObjectAccessorProvider . |
void |
setSimpleTypeConverterProvider(SimpleTypeConverterProvider simpleTypeConverterProvider)
Sets the SimpleTypeConverterProvider . |
void |
setTypeMappingRegistry(R typeMappingRegistry)
Sets the type mapping registry. |
void |
setValidationMode(ValidationMode validationMode)
Sets the validation mode. |
void |
setValidatorProvider(ValidatorProvider validatorProvider)
Sets the ValidatorProvider . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Configuration()
Configuration
.
protected Configuration(Configuration<R,E> other)
Configuration
as a copy of the given one.
other
- the other configMethod Detail |
---|
public final R getTypeMappingRegistry()
public final void setTypeMappingRegistry(R typeMappingRegistry)
typeMappingRegistry
- a type mapping registrypublic final Collection<E> getEntryPoints()
Serializer.write(java.lang.Object)
or which should be returned from Deserializer.next()
and only for these
objects (not for the objects related to these ones). If more than one entry point is defined for the same
data type name, then
public final void setEntryPoints(Collection<E> entryPoints)
entryPoints
- the entry pointspublic final ObjectAccessorProvider getObjectAccessorProvider()
public final SimpleTypeConverterProvider getSimpleTypeConverterProvider()
public final ValidatorProvider getValidatorProvider()
public final ValidationMode getValidationMode()
public final void setObjectAccessorProvider(ObjectAccessorProvider objectAccessorProvider)
ObjectAccessorProvider
.
objectAccessorProvider
- the ObjectAccessorProvider
public final void setSimpleTypeConverterProvider(SimpleTypeConverterProvider simpleTypeConverterProvider)
SimpleTypeConverterProvider
.
simpleTypeConverterProvider
- the SimpleTypeConverterProvider
public final void setValidatorProvider(ValidatorProvider validatorProvider)
ValidatorProvider
.
validatorProvider
- the ValidatorProvider
public final void setValidationMode(ValidationMode validationMode)
validationMode
- the validation modepublic abstract Configuration<R,E> createCopy()
Configuration
.
Configuration
protected abstract R createDefaultTypeMappingRegistry()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |