ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/jakarta/annotation/Resource.java

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

      
    
Rootfs path

      
    
Size
2739 (2.7 KB)
MD5
22e8753e971ad7831d30d40e1a9a7537
SHA1
93b754a60d8a2ddd4f1707e051904082359c22ff
SHA256
cb8bcd7a5ef4227a0f647ef80d7d1e6286cd2e9258ba19f4a53bb4643c44c913
SHA512

      
    
SHA1_git
ac47103a640597dcbf365a7c07261e9d0e11cd6e
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
Resource.java | 2.7 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.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Indicates a resource required by the application. Annotated classes will be used as resources. Annotated fields * and/or methods will have resources injected. * * @since Common Annotations 1.0 */ @Target({ ElementType.TYPE, ElementType.FIELD, ElementType.METHOD }) @Retention(RetentionPolicy.RUNTIME) @Repeatable(Resources.class) public @interface Resource { /** * The AuthenticationType, either CONTAINER or APPLICATION */ enum AuthenticationType { /** * Container authentication */ CONTAINER, /** * Application authentication */ APPLICATION } /** * @return a String with the name of the resource */ String name() default ""; /** * Uses generics since Common Annotations 1.2. * * @return The type for instances of this resource */ Class<?> type() default Object.class; /** * @return the AuthenticationType of the resource default CONTAINER */ AuthenticationType authenticationType() default AuthenticationType.CONTAINER; /** * @return true (default) if the resource is shareable, or false if not */ boolean shareable() default true; /** * @return a string with the description for the resource */ String description() default ""; /** * @return a string with the mappedName of the resource */ String mappedName() default ""; /** * @since Common Annotations 1.1 * * @return The name of the entry, if any, to use for this resource */ String lookup() default ""; }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
39.14
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