Skip to content

Commit

Permalink
docs: some small changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
QwQ-dev committed Dec 23, 2024
1 parent 4937982 commit 80a0d4a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion commons/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ public class Test {
public static VarHandle TField_HANDLE;

static {
InjectorFactory.inject(Test.class);
/*
* This class is a singleton and is managed by Fairy IoC.
* Of course, it is also allowed to create it directly using the factory or directly creating it.
* This is not so strict.
*/
InjectorFactory.createVarHandleReflectionInjector().inject(Test.class);
}
}
```

0 comments on commit 80a0d4a

Please sign in to comment.