Toggle navigation
Home
java.lang.String to org.apache.james.util.Host
No. of Instances - 15
No. of Commits - 2
No. of Projects - {'james-project'}
Hierarchy/Composition: Composition
Primitive Info: -
NameSpace: Jdk -> Internal
Mapping:
Add or Remove Method invocation
binder.bindConstant().annotatedWith(Names.named("cassandraHost")).to(cassandraHost)
to
binder.bindConstant().annotatedWith(Names.named("cassandraPort")).to(cassandraHost.getPort())
ClusterBuilder.builder().host(host).port(port).build()
to
ClusterBuilder.builder().host(host.getHostName()).port(host.getPort()).build()
new SessionWithInitializedTablesFactory(ClusterConfiguration.builder().host(Host.from(host,port)).keyspace(KEYSPACE).replicationFactor(1).build(),ClusterWithKeyspaceCreatedFactory.config(cluster,KEYSPACE).replicationFactor(1).disableDurableWrites().clusterWithInitializedKeyspace(),module).get()
to
new SessionWithInitializedTablesFactory(ClusterConfiguration.builder().host(host).keyspace(KEYSPACE).replicationFactor(1).build(),ClusterWithKeyspaceCreatedFactory.config(cluster,KEYSPACE).replicationFactor(1).disableDurableWrites().clusterWithInitializedKeyspace(),module).get()