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

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

      
    
Rootfs path

      
    
Size
2650 (2.6 KB)
MD5
40886fb325a93a670ee42649b1c1a846
SHA1
b75d5a0c183d91a3599acac3ff5f2754fc0d7273
SHA256
d857f8337e22764f608aad01457621167db37428428dfa99ff7623e07ddcdbed
SHA512

      
    
SHA1_git
8b6cd580e184d104579e9812c27f965a9f2e5729
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
BeanSupport.java | 2.6 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 jakarta.el.BeanELResolver.BeanProperties; /* * Provides an abstraction so the BeanELResolver can obtain JavaBeans specification support via different * implementations. */ abstract class BeanSupport { private static final BeanSupport beanSupport; static { // Only intended for unit tests. Not intended to be part of public API. boolean doNotCacheInstance = Boolean.getBoolean("jakarta.el.BeanSupport.doNotCacheInstance"); if (doNotCacheInstance) { beanSupport = null; } else { beanSupport = createInstance(); } } private static BeanSupport createInstance() { // Only intended for unit tests. Not intended to be part of public API. boolean useFull = !Boolean.getBoolean("jakarta.el.BeanSupport.useStandalone"); if (useFull) { // If not explicitly configured to use standalone, use the full implementation unless it is not available. try { Class.forName("java.beans.BeanInfo"); } catch (Exception e) { // Ignore: Expected if using modules and java.desktop module is not present useFull = false; } } if (useFull) { // The full implementation provided by the java.beans package return new BeanSupportFull(); } else { // The cut-down local implementation that does not depend on the java.beans package return new BeanSupportStandalone(); } } static BeanSupport getInstance() { if (beanSupport == null) { return createInstance(); } return beanSupport; } abstract BeanProperties getBeanProperties(Class<?> type); }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
41.32
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