@@ -170,7 +170,7 @@ Map<String, Object> initialContext = new HashMap<>();
170170initialContext. put(" deviceId" , " 123" );
171171initialContext. 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<>();
357357anotherFeatureSticky. put(" enabled" , false );
358358stickyFeatures. 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
434434import 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:
637637List<Map<String , Object > > hooks = new ArrayList<> ();
638638hooks. 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