• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TAKETODAY / today-infrastructure / 19225086188

10 Nov 2025 08:15AM UTC coverage: 84.13%. Remained the same
19225086188

push

github

TAKETODAY
:white_check_mark:

61359 of 78029 branches covered (78.64%)

Branch coverage included in aggregate %.

145112 of 167391 relevant lines covered (86.69%)

3.69 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

92.31
today-context/src/main/java/infra/cache/interceptor/CacheExpressionRootObject.java
1
/*
2
 * Copyright 2017 - 2025 the original author or authors.
3
 *
4
 * This program is free software: you can redistribute it and/or modify
5
 * it under the terms of the GNU General Public License as published by
6
 * the Free Software Foundation, either version 3 of the License, or
7
 * (at your option) any later version.
8
 *
9
 * This program is distributed in the hope that it will be useful,
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 * GNU General Public License for more details.
13
 *
14
 * You should have received a copy of the GNU General Public License
15
 * along with this program. If not, see [https://www.gnu.org/licenses/]
16
 */
17

18
package infra.cache.interceptor;
19

20
import org.jspecify.annotations.Nullable;
21

22
import java.lang.reflect.Method;
23
import java.util.Collection;
24

25
import infra.cache.Cache;
26

27
/**
28
 * Class describing the root object used during the expression evaluation.
29
 *
30
 * @author Costin Leau
31
 * @author Sam Brannen
32
 * @author <a href="https://github.com/TAKETODAY">Harry Yang</a>
33
 * @since 4.0
34
 */
35
class CacheExpressionRootObject {
36

37
  private final Collection<? extends Cache> caches;
38

39
  private final Method method;
40

41
  private final @Nullable Object[] args;
42

43
  private final Object target;
44

45
  private final Class<?> targetClass;
46

47
  public CacheExpressionRootObject(Collection<? extends Cache> caches,
48
          Method method, @Nullable Object[] args, Object target, Class<?> targetClass) {
2✔
49

50
    this.method = method;
3✔
51
    this.target = target;
3✔
52
    this.targetClass = targetClass;
3✔
53
    this.args = args;
3✔
54
    this.caches = caches;
3✔
55
  }
1✔
56

57
  public Collection<? extends Cache> getCaches() {
58
    return this.caches;
3✔
59
  }
60

61
  public Method getMethod() {
62
    return this.method;
3✔
63
  }
64

65
  public String getMethodName() {
66
    return this.method.getName();
4✔
67
  }
68

69
  public @Nullable Object[] getArgs() {
70
    return this.args;
×
71
  }
72

73
  public Object getTarget() {
74
    return this.target;
3✔
75
  }
76

77
  public Class<?> getTargetClass() {
78
    return this.targetClass;
3✔
79
  }
80

81
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc