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

Method defineBean

java/jakarta/el/ELProcessor.java:267–269  ·  view source on GitHub ↗

Defines or removes a bean accessible by name in EL expressions. When a non-null bean is provided, it is stored under the given name. When null is provided, the bean with the given name is removed. @param name the bean name @param bean the bean object to define, or null to remove the

(String name, Object bean)

Source from the content-addressed store, hash-verified

265 * @param bean the bean object to define, or {@code null} to remove the bean
266 */
267 public void defineBean(String name, Object bean) {
268 manager.defineBean(name, bean);
269 }
270
271
272 private static String bracket(String expression) {

Callers 15

doTestVarArgsBeanFMethod · 0.95
doTestVarArgsBeanGMethod · 0.95
doTestVarArgsBeanHMethod · 0.95
testPreferNoVarArgsMethod · 0.95
testGetValue01Method · 0.95
testGetValue02Method · 0.95
testGetType01Method · 0.95
testGetType02Method · 0.95
testNull01Method · 0.95
testToList02Method · 0.95
testFilter01Method · 0.95
testMap01Method · 0.95

Calls

no outgoing calls

Tested by 15

doTestVarArgsBeanFMethod · 0.76
doTestVarArgsBeanGMethod · 0.76
doTestVarArgsBeanHMethod · 0.76
testPreferNoVarArgsMethod · 0.76
testGetValue01Method · 0.76
testGetValue02Method · 0.76
testGetType01Method · 0.76
testGetType02Method · 0.76
testNull01Method · 0.76
testToList02Method · 0.76
testFilter01Method · 0.76
testMap01Method · 0.76