org.apache.openejb.jee
Class EjbRef
java.lang.Object
org.apache.openejb.jee.EjbRef
- All Implemented Interfaces:
- EjbReference, Injectable, JndiReference, Keyable<String>
public class EjbRef
- extends Object
- implements EjbReference
javaee6.xsd
Java class for ejb-refType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ejb-refType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="description" type="{http://java.sun.com/xml/ns/javaee}descriptionType" maxOccurs="unbounded" minOccurs="0"/>
<element name="ejb-ref-name" type="{http://java.sun.com/xml/ns/javaee}ejb-ref-nameType"/>
<element name="ejb-ref-type" type="{http://java.sun.com/xml/ns/javaee}ejb-ref-typeType" minOccurs="0"/>
<element name="home" type="{http://java.sun.com/xml/ns/javaee}homeType" minOccurs="0"/>
<element name="remote" type="{http://java.sun.com/xml/ns/javaee}remoteType" minOccurs="0"/>
<element name="ejb-link" type="{http://java.sun.com/xml/ns/javaee}ejb-linkType" minOccurs="0"/>
<group ref="{http://java.sun.com/xml/ns/javaee}resourceGroup"/>
</sequence>
<attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
</restriction>
</complexContent>
</complexType>
description
protected TextMap description
ejbRefName
protected String ejbRefName
ejbRefType
protected EjbRefType ejbRefType
home
protected String home
remote
protected String remote
ejbLink
protected String ejbLink
mappedName
protected String mappedName
lookupName
protected String lookupName
injectionTarget
protected Set<InjectionTarget> injectionTarget
id
protected String id
refType
protected EjbReference.Type refType
EjbRef
public EjbRef()
name
public EjbRef name(String ejbRefName)
type
public EjbRef type(EjbRefType ejbRefType)
link
public EjbRef link(String link)
remote
public EjbRef remote(String remote)
remote
public EjbRef remote(Class<?> remote)
home
public EjbRef home(String home)
home
public EjbRef home(Class<?> home)
mappedName
public EjbRef mappedName(String mappedName)
lookup
public EjbRef lookup(String lookupName)
injectionTarget
public EjbRef injectionTarget(String className,
String property)
injectionTarget
public EjbRef injectionTarget(Class<?> clazz,
String property)
getRefType
public EjbReference.Type getRefType()
- Specified by:
getRefType in interface EjbReference
setRefType
public void setRefType(EjbReference.Type refType)
- Specified by:
setRefType in interface EjbReference
getDescriptions
public Text[] getDescriptions()
- Specified by:
getDescriptions in interface EjbReference
setDescriptions
public void setDescriptions(Text[] text)
getDescription
public String getDescription()
getEjbRefName
public String getEjbRefName()
getName
public String getName()
- Specified by:
getName in interface JndiReference
getKey
public String getKey()
- Description copied from interface:
Keyable
- Gets the immutable key for this object.
- Specified by:
getKey in interface Keyable<String>
- Returns:
- gets the immutable key for this object
getType
public String getType()
- Specified by:
getType in interface JndiReference
setName
public void setName(String name)
- Specified by:
setName in interface JndiReference
setType
public void setType(String type)
- Specified by:
setType in interface JndiReference
setEjbRefName
public void setEjbRefName(String value)
getEjbRefType
public EjbRefType getEjbRefType()
- Specified by:
getEjbRefType in interface EjbReference
setEjbRefType
public void setEjbRefType(EjbRefType value)
getHome
public String getHome()
- Specified by:
getHome in interface EjbReference
setHome
public void setHome(String value)
getRemote
public String getRemote()
getInterface
public String getInterface()
- Specified by:
getInterface in interface EjbReference
setRemote
public void setRemote(String value)
getEjbLink
public String getEjbLink()
- Specified by:
getEjbLink in interface EjbReference
setEjbLink
public void setEjbLink(String value)
getMappedName
public String getMappedName()
- Specified by:
getMappedName in interface JndiReference
setMappedName
public void setMappedName(String value)
- Specified by:
setMappedName in interface JndiReference
getLookupName
public String getLookupName()
- Specified by:
getLookupName in interface JndiReference
setLookupName
public void setLookupName(String lookupName)
- Specified by:
setLookupName in interface JndiReference
getInjectionTarget
public Set<InjectionTarget> getInjectionTarget()
- Specified by:
getInjectionTarget in interface Injectable
getId
public String getId()
setId
public void setId(String value)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.