#NEWLINE# def __init__( self , serialization_config , version = 1 , portable_version = 0 , global_partition_strategy = default_partition_strategy , output_buffer_size = DEFAULT_OUT_BUFFER_SIZE ) : #NEWLINE# #INDENT# super ( SerializationServiceV1 , self ) . __init__ ( version , global_partition_strategy , output_buffer_size , serialization_config . is_big_endian , serialization_config . default_integer_type ) #NEWLINE# self . _portable_context = PortableContext ( self , portable_version ) #NEWLINE# self . register_class_definitions ( serialization_config . class_definitions , serialization_config . check_class_def_errors ) #NEWLINE# self . _registry . _portable_serializer = PortableSerializer ( self . _portable_context , serialization_config . portable_factories ) #NEWLINE# factories = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# factories . update ( serialization_config . data_serializable_factories ) #NEWLINE# self . _registry . _data_serializer = IdentifiedDataSerializer ( output_buffer_size ) #NEWLINE# self . _register_constant_serializers ( ) #NEWLINE# for ( _type , custom_serializer ) in serialization_config . custom_serializers . iteritems ( ) : #NEWLINE# #INDENT# self . _registry . safe_register_serializer ( custom_serializer ( ) , _type ) #NEWLINE# #UNINDENT# global_serializer = serialization_config . global_serializer #NEWLINE# if global_serializer : #NEWLINE# #INDENT# self . _registry . _global_serializer = global_serializer ( )