ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/util/digester/ObjectCreationFactory.java

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

      
    
Rootfs path

      
    
Size
2123 (2.1 KB)
MD5
c451d110957b740f7edf5fcf8651cb8c
SHA1
fd7ce82c5ff26b10ac2499bf671bd2a3d4333f02
SHA256
399833838d4fbd25b6f132478d3bfeb408fd6ddb6cae42e38b2fde59dd9f1d83
SHA512

      
    
SHA1_git
8c8535511d9c9daf0e99af742c80a20d3714f979
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
ObjectCreationFactory.java | 2.1 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 org.apache.tomcat.util.digester; import org.xml.sax.Attributes; /** * <p> * Interface for use with {@link FactoryCreateRule}. The rule calls {@link #createObject} to create an object to be * pushed onto the <code>Digester</code> stack whenever it is matched. * </p> * <p> * {@link AbstractObjectCreationFactory} is an abstract implementation suitable for creating anonymous * <code>ObjectCreationFactory</code> implementations. */ public interface ObjectCreationFactory { /** * Factory method called by {@link FactoryCreateRule} to supply an object based on the element's attributes. * * @param attributes the element's attributes * * @return the created object * * @throws Exception any exception thrown will be propagated upwards */ Object createObject(Attributes attributes) throws Exception; /** * @return the {@link Digester} that was set by the {@link FactoryCreateRule} upon initialization. */ Digester getDigester(); /** * Set the {@link Digester} to allow the implementation to do logging, classloading based on the digester's * classloader, etc. * * @param digester parent Digester object */ void setDigester(Digester digester); }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
45.95
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