MCPcopy Create free account
hub / github.com/apache/tomcat / getValue

Method getValue

java/jakarta/el/BeanNameELResolver.java:40–59  ·  view source on GitHub ↗
(ELContext context, Object base, Object property)

Source from the content-addressed store, hash-verified

38 }
39
40 @Override
41 public Object getValue(ELContext context, Object base, Object property) {
42 Objects.requireNonNull(context);
43 if (base != null || !(property instanceof String beanName)) {
44 return null;
45 }
46
47 if (beanNameResolver.isNameResolved(beanName)) {
48 try {
49 Object result = beanNameResolver.getBean(beanName);
50 context.setPropertyResolved(null, property);
51 return result;
52 } catch (Throwable t) {
53 Util.handleThrowable(t);
54 throw new ELException(t);
55 }
56 }
57
58 return null;
59 }
60
61 @Override
62 public void setValue(ELContext context, Object base, Object property, Object value) {

Callers 7

testGetValue01Method · 0.95
testGetValue02Method · 0.95
testGetValue03Method · 0.95
testGetValue04Method · 0.95
testGetValue05Method · 0.95
doThrowableTestMethod · 0.95

Calls 4

handleThrowableMethod · 0.95
isNameResolvedMethod · 0.45
getBeanMethod · 0.45
setPropertyResolvedMethod · 0.45

Tested by 7

testGetValue01Method · 0.76
testGetValue02Method · 0.76
testGetValue03Method · 0.76
testGetValue04Method · 0.76
testGetValue05Method · 0.76
doThrowableTestMethod · 0.76