Skip to content

Commit

Permalink
Add missing quotes in UCN example (#1031)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-jamroz authored Feb 28, 2024
1 parent f77c058 commit 523765f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/modules/clusters/pages/ucn-dynamic-config.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public class Client {
HazelcastInstance instance = getHazelcastInstance();
UserCodeNamespacesConfig parentConfig = instance.getConfig().getNamespacesConfig(); <1>
UserCodeNamespaceConfig namespaceConfig = new UserCodeNamespaceConfig("my_namespace"); <2>
namespaceConfig.addClass(Paths.get("/etc/path/to/MyRequiredClass.class).toUri().toURL(), "MyRequiredClass-class"); <3>
namespaceConfig.addClass(Paths.get("/etc/path/to/MyRequiredClass.class").toUri().toURL(), "MyRequiredClass-class"); <3>
UserCodeNamespaceConfig ucn = new UserCodeNamespaceConfig("my_namespace")
namespaceConfig.addClass(Paths.get("url/to/the/class/file).toUri().toURL(), "classId"); <4>
namespaceConfig.addClass(Paths.get("url/to/the/class/file").toUri().toURL(), "classId"); <4>
parentConfig.addNamespaceConfig(namespaceConfig); <5>
// After some time, you can replace `my_namespace` with new resources...
UserCodeNamespaceConfig newNamespaceConfig = new UserCodeNamespaceConfig("my_namespace"); <6>
Expand All @@ -43,4 +43,4 @@ public class Client {
<5> Adds the `my_namespace` configuration with its resources to the parent, which is dynamically applied on the member
<6> Creates a new namespace config with the same name `my_namespace`
<7> Adds different resources which will replace all previously defined resources
<8> Adds the new `my_namespace` config to the parent, which will replace the previously defined resources
<8> Adds the new `my_namespace` config to the parent, which will replace the previously defined resources

0 comments on commit 523765f

Please sign in to comment.