[id='hotrod_serializationcontextinitializer']
= Configuring SerializationContextInitializer Implementations
You can add implementations of the ProtoStream
`SerializationContextInitializer` interface to Hot Rod client configurations so
{brandname} marshalls custom Java objects.

.Procedure

* Add your `SerializationContextInitializer` implementations to your Hot Rod
client configuration as follows:

.`hotrod-client.properties`

[source,java]
----
infinispan.client.hotrod.context-initializers=org.infinispan.example.LibraryInitializerImpl,org.infinispan.example.AnotherExampleSciImpl
----

.Programmatic configuration

[source,java]
----
include::code_examples/ClientProtoStreamMarshaller.java[]
----

* link:{dev_docs}#protostream_cm_config[Using the ProtoStream Marshaller]
* link:{dev_docs}#protostream_ctx[ProtoStream Serialization Contexts]
