Allow codec registry to be set/mutated after the session object is instantiated in 2.x driver paradigm

Description

The only place in the 2.0 drivers where you can specify custom codecs is while building the DseSession:

1 2 3 DseSession session = DseSession.builder() .addTypeCodecs(new TypeCodec<MyPojo>()) .build();

The customer I'm working with wants to be able to specify these type codecs dynamically when initiating his driver application. To do this, they need to start the session and look at the structures to have all the information they need to specify the codecs. Then, they have to spin up a new DseSession object.

Can we add something like:

1 session.getContext().getCodecRegistry().addTypeCodecs(...);

or maybe:

1 session.getContext().setCodecRegistry(...);

This functionality was available in the 1.x driver paradigm.

Environment

None

Pull Requests

None

Status

Assignee

Olivier Michallat

Reporter

Jim Hatcher

Labels

None

PM Priority

None

Reproduced in

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

Doc Impact

None

Reviewer

None

Size

None

Fix versions

Priority

Major