Browse Source

Merge branch '6.0.x'

pull/26478/merge
Sébastien Deleuze 1 year ago
parent
commit
566621f7e3
  1. 6
      framework-docs/modules/ROOT/pages/core/aop/ataspectj/advice.adoc
  2. 4
      framework-docs/modules/ROOT/pages/core/aop/ataspectj/example.adoc
  3. 6
      framework-docs/modules/ROOT/pages/core/aop/schema.adoc
  4. 2
      framework-docs/modules/ROOT/pages/core/aop/using-aspectj.adoc

6
framework-docs/modules/ROOT/pages/core/aop/ataspectj/advice.adoc

@ -176,7 +176,7 @@ Kotlin:: @@ -176,7 +176,7 @@ Kotlin::
@AfterReturning(
pointcut = "execution(* com.xyz.dao.*.*(..))",
returning = "retVal")
fun doAccessCheck(retVal: Any) {
fun doAccessCheck(retVal: Any?) {
// ...
}
}
@ -448,7 +448,7 @@ Kotlin:: @@ -448,7 +448,7 @@ Kotlin::
class AroundExample {
@Around("execution(* com.xyz..service.*.*(..))")
fun doBasicProfiling(pjp: ProceedingJoinPoint): Any {
fun doBasicProfiling(pjp: ProceedingJoinPoint): Any? {
// start stopwatch
val retVal = pjp.proceed()
// stop stopwatch
@ -888,7 +888,7 @@ Kotlin:: @@ -888,7 +888,7 @@ Kotlin::
"com.xyz.CommonPointcuts.inDataAccessLayer() && " +
"args(accountHolderNamePattern)") // <1>
fun preProcessQueryPattern(pjp: ProceedingJoinPoint,
accountHolderNamePattern: String): Any {
accountHolderNamePattern: String): Any? {
val newPattern = preProcess(accountHolderNamePattern)
return pjp.proceed(arrayOf<Any>(newPattern))
}

4
framework-docs/modules/ROOT/pages/core/aop/ataspectj/example.adoc

@ -85,7 +85,7 @@ Kotlin:: @@ -85,7 +85,7 @@ Kotlin::
}
@Around("com.xyz.CommonPointcuts.businessService()") // <1>
fun doConcurrentOperation(pjp: ProceedingJoinPoint): Any {
fun doConcurrentOperation(pjp: ProceedingJoinPoint): Any? {
var numAttempts = 0
var lockFailureException: PessimisticLockingFailureException
do {
@ -173,7 +173,7 @@ Kotlin:: @@ -173,7 +173,7 @@ Kotlin::
----
@Around("execution(* com.xyz..service.*.*(..)) && " +
"@annotation(com.xyz.service.Idempotent)")
fun doConcurrentOperation(pjp: ProceedingJoinPoint): Any {
fun doConcurrentOperation(pjp: ProceedingJoinPoint): Any? {
// ...
}
----

6
framework-docs/modules/ROOT/pages/core/aop/schema.adoc

@ -435,7 +435,7 @@ Kotlin:: @@ -435,7 +435,7 @@ Kotlin::
+
[source,kotlin,indent=0,subs="verbatim",role="secondary"]
----
fun doBasicProfiling(pjp: ProceedingJoinPoint): Any {
fun doBasicProfiling(pjp: ProceedingJoinPoint): Any? {
// start stopwatch
val retVal = pjp.proceed()
// stop stopwatch
@ -554,7 +554,7 @@ Kotlin:: @@ -554,7 +554,7 @@ Kotlin::
class SimpleProfiler {
fun profile(call: ProceedingJoinPoint, name: String, age: Int): Any {
fun profile(call: ProceedingJoinPoint, name: String, age: Int): Any? {
val clock = StopWatch("Profiling for '$name' and '$age'")
try {
clock.start(call.toShortString())
@ -890,7 +890,7 @@ Kotlin:: @@ -890,7 +890,7 @@ Kotlin::
this.order = order
}
fun doConcurrentOperation(pjp: ProceedingJoinPoint): Any {
fun doConcurrentOperation(pjp: ProceedingJoinPoint): Any? {
var numAttempts = 0
var lockFailureException: PessimisticLockingFailureException
do {

2
framework-docs/modules/ROOT/pages/core/aop/using-aspectj.adoc

@ -493,7 +493,7 @@ Kotlin:: @@ -493,7 +493,7 @@ Kotlin::
class ProfilingAspect {
@Around("methodsToBeProfiled()")
fun profile(pjp: ProceedingJoinPoint): Any {
fun profile(pjp: ProceedingJoinPoint): Any? {
val sw = StopWatch(javaClass.simpleName)
try {
sw.start(pjp.getSignature().getName())

Loading…
Cancel
Save