ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/naming/EjbRef.java

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

      
    
Rootfs path

      
    
Size
3055 (3.0 KB)
MD5
f34ec4264b691ca2a32d0aad12ab311e
SHA1
33e17dc8e9acda2e65eb345f9d1c145ee0379229
SHA256
ce1b4cabc9d11da209aa52719cc70afce0555a0c1dfbace912dae9fc23377143
SHA512

      
    
SHA1_git
3c34e128f76b7163835976198df68b502d31d13b
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
EjbRef.java | 3.0 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.naming; import java.io.Serial; import javax.naming.StringRefAddr; /** * Represents a reference address to an EJB. */ public class EjbRef extends AbstractRef { @Serial private static final long serialVersionUID = 1L; /** * Default factory for this reference. */ public static final String DEFAULT_FACTORY = org.apache.naming.factory.Constants.DEFAULT_EJB_FACTORY; /** * EJB type address type. */ public static final String TYPE = "type"; /** * Remote interface classname address type. */ public static final String REMOTE = "remote"; /** * Link address type. */ public static final String LINK = "link"; /** * EJB Reference. * * @param ejbType EJB type * @param home Home interface classname * @param remote Remote interface classname * @param link EJB link */ public EjbRef(String ejbType, String home, String remote, String link) { this(ejbType, home, remote, link, null, null); } /** * EJB Reference. * * @param ejbType EJB type * @param home Home interface classname * @param remote Remote interface classname * @param link EJB link * @param factory The possibly null class name of the object's factory. * @param factoryLocation The possibly null location from which to load the factory (e.g. URL) */ public EjbRef(String ejbType, String home, String remote, String link, String factory, String factoryLocation) { super(home, factory, factoryLocation); StringRefAddr refAddr; if (ejbType != null) { refAddr = new StringRefAddr(TYPE, ejbType); add(refAddr); } if (remote != null) { refAddr = new StringRefAddr(REMOTE, remote); add(refAddr); } if (link != null) { refAddr = new StringRefAddr(LINK, link); add(refAddr); } } @Override protected String getDefaultFactoryClassName() { return DEFAULT_FACTORY; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
35.31
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