thmd commented on issue #3050:
URL: https://github.com/apache/fory/issues/3050#issuecomment-3711064291
There's few more things that I'm confused about. The difference between
`fory.getClassResolver().setClassChecker(classResolver, className) ->
className.startsWith("org.example."));`
and
```
AllowListChecker checker = new
AllowListChecker(AllowListChecker.CheckLevel.STRICT);
ThreadSafeFory fory = new ThreadLocalFory(classLoader -> {
Fory f =
Fory.builder().requireClassRegistration(true).withClassLoader(classLoader).build();
f.getClassResolver().setClassChecker(checker);
checker.addListener(f.getClassResolver());
return f;
});
checker.allowClass("org.example.*");
```
The first version looks much easier to understand and shorter. So what's the
2nd version giving me?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]