ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/jakarta/el/ELManager.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/jakarta/el/ELManager.java
Status
scanned
Type
file
Name
ELManager.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
2998 (2.9 KB)
MD5
b53f438e18dc928985df8d1e54bce1b8
SHA1
e8bb2c938e287f83708cd639aba0be927d3be0e5
SHA256
fe4c08e7dc0f29dad0deb6eae997edc93b94a76c163cea1a6a99dfd7d4fb62ab
SHA512

      
    
SHA1_git
f28e5b6f55a6c1252d0e5ab1dec68c68b3f4ddb5
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
ELManager.java | 2.9 KB |

/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package jakarta.el; import java.lang.reflect.Method; import java.util.Map; /** * @since EL 3.0 */ public class ELManager { private StandardELContext context = null; public static ExpressionFactory getExpressionFactory() { return Util.getExpressionFactory(); } public StandardELContext getELContext() { if (context == null) { context = new StandardELContext(getExpressionFactory()); } return context; } public ELContext setELContext(ELContext context) { StandardELContext oldContext = this.context; this.context = new StandardELContext(context); return oldContext; } public void addBeanNameResolver(BeanNameResolver beanNameResolver) { getELContext().addELResolver(new BeanNameELResolver(beanNameResolver)); } public void addELResolver(ELResolver resolver) { getELContext().addELResolver(resolver); } public void mapFunction(String prefix, String function, Method method) { getELContext().getFunctionMapper().mapFunction(prefix, function, method); } public void setVariable(String variable, ValueExpression expression) { getELContext().getVariableMapper().setVariable(variable, expression); } public void importStatic(String staticMemberName) throws ELException { getELContext().getImportHandler().importStatic(staticMemberName); } public void importClass(String className) throws ELException { getELContext().getImportHandler().importClass(className); } public void importPackage(String packageName) { getELContext().getImportHandler().importPackage(packageName); } public Object defineBean(String name, Object bean) { Map<String,Object> localBeans = getELContext().getLocalBeans(); if (bean == null) { return localBeans.remove(name); } else { return localBeans.put(name, bean); } } public void addEvaluationListener(EvaluationListener listener) { getELContext().addEvaluationListener(listener); } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
41.61
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9