ICommonConfiguration.

RegisterTypeHandler(ITypeHandlerPredicate, ITypeHandler4) Method

Summary

Allows registering special TypeHandlers for customized marshalling and customized comparisons.

Syntax

void RegisterTypeHandler(ITypeHandlerPredicate predicate, ITypeHandler4 typeHandler)

Remarks

Allows registering special TypeHandlers for customized marshalling and customized comparisons.
This is only for adventurous people, since type handlers work a the lowest levels:
  • There is no versioning support: If you need to change the serialisation scheme of the type your are on your own.
  • The typehandler-API is mostly undocumented and not as stable as other db4o APIs.
  • Elaborate type handlers need deep knowledge of undocumented, internal implementation details of db4o.
  • Mistakes in typehandlers can lead to cryptic error messages and database corruption.

Parameters

Name Type Description
predicate ITypeHandlerPredicate to specify for which classes and versions the TypeHandler is to be used.
typeHandler ITypeHandler4 to be used for the classes that match the predicate.

Return Value

Type Description
void