Skip to content

Commit 1d3c5f0

Browse files
committed
readme updates
1 parent 1df1af9 commit 1d3c5f0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Map<String, Object> initialContext = new HashMap<>();
170170
initialContext.put("deviceId", "123");
171171
initialContext.put("country", "nl");
172172

173-
Instance f = Featurevisor.createInstance(new Instance.InstanceOptions()
173+
Instance f = new Instance(new Instance.InstanceOptions()
174174
.datafile(datafile)
175175
.context(initialContext));
176176
```
@@ -357,7 +357,7 @@ Map<String, Object> anotherFeatureSticky = new HashMap<>();
357357
anotherFeatureSticky.put("enabled", false);
358358
stickyFeatures.put("anotherFeatureKey", anotherFeatureSticky);
359359

360-
Instance f = Featurevisor.createInstance(new Instance.InstanceOptions()
360+
Instance f = new Instance(new Instance.InstanceOptions()
361361
.datafile(datafile)
362362
.sticky(stickyFeatures));
363363
```
@@ -433,7 +433,7 @@ Setting `debug` level will print out all logs, including `info`, `warn`, and `er
433433
```java
434434
import com.featurevisor.sdk.Logger;
435435

436-
Instance f = Featurevisor.createInstance(new Instance.InstanceOptions()
436+
Instance f = new Instance(new Instance.InstanceOptions()
437437
.datafile(datafile)
438438
.logLevel(Logger.LogLevel.DEBUG));
439439
```
@@ -457,7 +457,7 @@ Logger customLogger = Logger.createLogger(new Logger.CreateLoggerOptions()
457457
System.out.println("[" + level + "] " + message);
458458
}));
459459

460-
Instance f = Featurevisor.createInstance(new Instance.InstanceOptions()
460+
Instance f = new Instance(new Instance.InstanceOptions()
461461
.datafile(datafile)
462462
.logger(customLogger));
463463
```
@@ -470,7 +470,7 @@ Logger customLogger = new Logger(Logger.LogLevel.INFO, (level, message, details)
470470
System.out.println("[" + level + "] " + message);
471471
});
472472

473-
Instance f = Featurevisor.createInstance(new Instance.InstanceOptions()
473+
Instance f = new Instance(new Instance.InstanceOptions()
474474
.datafile(datafile)
475475
.logger(customLogger));
476476
```
@@ -637,7 +637,7 @@ You can register hooks at the time of SDK initialization:
637637
List<Map<String, Object>> hooks = new ArrayList<>();
638638
hooks.add(myCustomHook);
639639

640-
Instance f = Featurevisor.createInstance(new Instance.InstanceOptions()
640+
Instance f = new Instance(new Instance.InstanceOptions()
641641
.datafile(datafile)
642642
.hooks(hooks));
643643
```

0 commit comments

Comments
 (0)