wuwen
f972b103db
Support private blockHandler/fallback method for @SentinelResource annotation ( #2163 )
2021-06-07 14:18:39 +08:00
ss-superman
dfce6ebba4
Remove redundant code in SentinelResourceAspect ( #2016 )
2021-02-07 15:24:19 +08:00
于玉桔
6b86721b36
Support setting class-level defaultFallback for annotation extension ( #1493 )
2020-05-29 13:49:00 +08:00
Eric Zhao
eed77cafc2
Polish placeholders in logging content to slf4j convention ( #1342 )
...
* Polish placeholders in logging content to "{}"
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-17 11:11:54 +08:00
Eric Zhao
800f6b9d65
Update adapter modules to update corresponding resource classification
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-06 21:00:08 +08:00
huangxfchn
4916ec35ee
Improve annotation aspect to support throwing original exception in fallback and blockHandler ( #986 )
...
- extract the original exception from InvocationTargetException
2019-08-28 22:42:02 +08:00
0704681032
ebcf89024c
Remove duplicate "exceptionBelongsTo" check in SentinelResourceAspect ( #964 )
2019-08-05 13:39:50 +08:00
Eric Zhao
82578e1fdf
Refactor and improve fallback support for @SentinelResource annotation ( #693 )
...
- Refactor the semantics and logic for blockHandler and fallback
- Add `fallbackClass` support for fallback in global classes
- Add `defaultFallback` support
- Update test cases and demo
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-23 23:17:03 +08:00
yikangfeng
08611fae0f
Add exceptionsToIgnore configuration support in @SentinelResource annotation ( #683 )
2019-04-21 15:57:12 +08:00
Eric Zhao
53a4e16144
Fix bug for completing entry with parameters in SentinelResourceAspect
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-26 12:53:39 +08:00
Eric Zhao
61c525076f
Improve SentinelResourceAspect and update test cases / document of annotation support
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-25 14:14:31 +08:00
beston123
6e1dfb374c
Add exceptionsToTrace configuration support in @SentinelResource annotation ( #543 )
2019-03-25 13:57:57 +08:00
Eric Zhao
f60394c651
Add test cases for sentinel-annotation-aspectj ( #581 )
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-21 16:25:07 +08:00
Eric Zhao
3109ac4bef
Remove slf4j dependency in sentinel-annotation-aspectj
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-25 16:59:54 +08:00
Eric Zhao
09ba7f081b
Resolves #256 : Support parameters in entry of Sentinel annotation support
...
- To enable parameter flow control in Sentinel annotation support
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-21 16:46:55 +08:00
Eric Zhao
61a75af379
Add exception count trace for Sentinel annotation aspectj support
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-02 19:22:00 +08:00
bitonly
8f85dc5643
Add overloaded handleBlockException method for customized extension ( #223 )
2018-11-01 17:44:36 +08:00
Eric Zhao
e0328d412a
Remove logic of entering context when entering resource in annotation pointcut
...
- Rename AbstractSentinelAspect to AbstractSentinelAspectSupport
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-10-31 15:34:06 +08:00
bitonly
cb09304ee2
Add abstract Sentinel aspect class for extension ( #214 )
2018-10-31 15:19:27 +08:00
Eric Zhao
5aad448191
Refactor logic of getting resource name in Sentinel annotation
...
- Enhance resolve name logic in MethodUtil
- Add test case for MethodUtil
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-10-24 14:46:42 +08:00
waveng
078df9db4f
Sentinel annotation supports method name as default resource name ( #187 )
2018-10-24 09:42:51 +08:00
Eric Zhao
9164bb19fe
Fix the bug when resolving original method to get annotation ( #111 )
...
- The method from the signature will return the method of interface, so we need to resolve declared method in target class
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-31 11:10:41 +08:00
Eric Zhao
b1cf30fc24
Add support for shared block handler
...
- Update javadoc and document
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-08 10:40:38 +08:00
Eric Zhao
348b1c819b
Add Sentinel annotation definition and aspectj extension
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-08 10:40:38 +08:00