Skip to content

Commit 170cc37

Browse files
committed
INT-3916: ZK: Fix missing doc update
JIRA: https://jira.spring.io/browse/INT-3916 Changed CTOR injection to setters.
1 parent 493b4aa commit 170cc37

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/reference/asciidoc/zookeeper.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ In Java configuration you can create an instance of the leader initiator like th
8484
----
8585
@Bean
8686
public LeaderInitiatorFactoryBean leaderInitiator(CuratorFramework client) {
87-
return new LeaderInitiatorFactoryBean(client, "/siTest/", "cluster");
87+
return new LeaderInitiatorFactoryBean()
88+
.setClient(client)
89+
.setPath("/siTest/")
90+
.setRole("cluster");
8891
}
8992
----

0 commit comments

Comments
 (0)