Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CassandraCqlClusterFactoryBean with support for setting CodecRegistry. [DATACASS-318] #487

Closed
spring-projects-issues opened this issue Jul 19, 2016 · 4 comments
Assignees
Labels
in: core type: enhancement

Comments

@spring-projects-issues
Copy link

spring-projects-issues commented Jul 19, 2016

John Blum opened DATACASS-318 and commented

Update CassandraCqlClusterFactoryBean to include a setCodecRegistry(:CodecRegistry) method and update the afterPropertiesSet() method to set on the Cluster.Builder.

Example CodecRegistry usage:

CodecRegistry exampleCodecRegistry = new CodecRegistry();
exampleCodecRegistry.register(exampleCodec1, exampleCodec2, exampleCodec3);

Cluster.builder().addContactPoint("127.0.0.1")
    .withCodecRegistry(exampleCodeRegistry)
    .build(); 

Affects: 1.4.2 (Hopper SR2)

Issue Links:

  • DATACASS-283 Investigate on using Cassandra CodecRegistry for type mapping

1 votes, 3 watchers

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Jul 19, 2016

John Blum commented

Recent StackOverflow post pertaining to this JIRA ticket

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Jul 21, 2016

Mark Paluch commented

What do you think about a ClusterBuilderCallback interface that allows the user to specify a callback for custom configuration actions? That way we don't need to stay bleeding-edge with the driver and expose a way to users to configure particular things themselves

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Jul 21, 2016

John Blum commented

Regarding...

What do you think about a ClusterBuilderCallback interface

I was thinking that exact same thing, having a callback or a post processor to cover for use when the DataStax Java Driver API changes.

Though, I do think if we can keep it relatively in sync, the better. But, the callback would be nice so that we don't have to stay on top of it constantly.

+1

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Jul 21, 2016

John Blum commented

Regarding the CodecRegistry... Understood. I remember reviewing, or going over that in SD Cassandra's code actually. I will sync up with you on that before I move forward on this ticket. Thanks Mark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants