casbin / jcasbin

An authorization library that supports access control models like ACL, RBAC, ABAC in Java
https://casbin.org
Apache License 2.0
2.4k stars 464 forks source link

feat: Expose getter and setter of aviatorEval for more customization #359

Closed HasonHuang closed 1 year ago

HasonHuang commented 1 year ago

For example, In concurrent processing scenarios, Enforcer uses ThreadLocal to manage multiple instances, but the AviatorEvaluatorInstance is a singleton, or custom configuration (enabling logging, performance optimization).

casbin-bot commented 1 year ago

@tangyang9464 @imp2002 please review

codecov-commenter commented 1 year ago

Codecov Report

Merging #359 (3842519) into master (3d22ec5) will increase coverage by 0.08%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #359      +/-   ##
==========================================
+ Coverage   69.37%   69.46%   +0.08%     
==========================================
  Files          49       49              
  Lines        2237     2240       +3     
  Branches      398      398              
==========================================
+ Hits         1552     1556       +4     
+ Misses        574      573       -1     
  Partials      111      111              
Files Changed Coverage Δ
...ain/java/org/casbin/jcasbin/main/CoreEnforcer.java 77.62% <100.00%> (+0.57%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.40.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: