Package org.apache.openejb.jee
Class EjbLocalRef
- java.lang.Object
-
- org.apache.openejb.jee.EjbLocalRef
-
- All Implemented Interfaces:
EjbReference,Injectable,JndiReference,Keyable<String>
public class EjbLocalRef extends Object implements EjbReference
javaee6.xsdJava class for ejb-local-refType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ejb-local-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="local-home" type="{http://java.sun.com/xml/ns/javaee}local-homeType" minOccurs="0"/> <element name="local" type="{http://java.sun.com/xml/ns/javaee}localType" 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>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.openejb.jee.EjbReference
EjbReference.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected TextMapdescriptionprotected StringejbLinkprotected StringejbRefNameprotected EjbRefTypeejbRefTypeprotected Stringidprotected Set<InjectionTarget>injectionTargetprotected Stringlocalprotected StringlocalHomeprotected StringlookupNameprotected StringmappedName
-
Constructor Summary
Constructors Constructor Description EjbLocalRef()EjbLocalRef(String ejbRefName, String ejbLink)EjbLocalRef(EjbReference ref)
-
Method Summary
-
-
-
Field Detail
-
description
protected TextMap description
-
ejbRefName
protected String ejbRefName
-
ejbRefType
protected EjbRefType ejbRefType
-
localHome
protected String localHome
-
local
protected String local
-
ejbLink
protected String ejbLink
-
mappedName
protected String mappedName
-
lookupName
protected String lookupName
-
injectionTarget
protected Set<InjectionTarget> injectionTarget
-
id
protected String id
-
-
Constructor Detail
-
EjbLocalRef
public EjbLocalRef()
-
EjbLocalRef
public EjbLocalRef(EjbReference ref)
-
-
Method Detail
-
name
public EjbLocalRef name(String ejbRefName)
-
type
public EjbLocalRef type(EjbRefType ejbRefType)
-
link
public EjbLocalRef link(String link)
-
local
public EjbLocalRef local(String local)
-
local
public EjbLocalRef local(Class<?> local)
-
localHome
public EjbLocalRef localHome(String localHome)
-
localHome
public EjbLocalRef localHome(Class<?> localHome)
-
mappedName
public EjbLocalRef mappedName(String mappedName)
-
lookup
public EjbLocalRef lookup(String lookupName)
-
injectionTarget
public EjbLocalRef injectionTarget(String className, String property)
-
injectionTarget
public EjbLocalRef injectionTarget(Class<?> clazz, String property)
-
getName
public String getName()
- Specified by:
getNamein interfaceJndiReference
-
getKey
public String getKey()
Description copied from interface:KeyableGets the immutable key for this object.
-
getType
public String getType()
- Specified by:
getTypein interfaceJndiReference
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceJndiReference
-
setType
public void setType(String type)
- Specified by:
setTypein interfaceJndiReference
-
getDescriptions
public Text[] getDescriptions()
- Specified by:
getDescriptionsin interfaceEjbReference
-
setDescriptions
public void setDescriptions(Text[] text)
-
getDescription
public String getDescription()
-
getEjbRefName
public String getEjbRefName()
-
setEjbRefName
public void setEjbRefName(String value)
The ejb-ref-name element contains the name of an EJB reference. The EJB reference is an entry in the Deployment Component's environment and is relative to the java:comp/env context. The name must be unique within the Deployment Component. It is recommended that name is prefixed with "ejb/". Example:ejb/Payroll
-
getEjbRefType
public EjbRefType getEjbRefType()
- Specified by:
getEjbRefTypein interfaceEjbReference
-
setEjbRefType
public void setEjbRefType(EjbRefType value)
-
getLocalHome
public String getLocalHome()
-
getHome
public String getHome()
- Specified by:
getHomein interfaceEjbReference
-
getInterface
public String getInterface()
- Specified by:
getInterfacein interfaceEjbReference
-
getRefType
public EjbReference.Type getRefType()
- Specified by:
getRefTypein interfaceEjbReference
-
setRefType
public void setRefType(EjbReference.Type refType)
- Specified by:
setRefTypein interfaceEjbReference
-
setLocalHome
public void setLocalHome(String value)
-
getLocal
public String getLocal()
-
setLocal
public void setLocal(String value)
-
getEjbLink
public String getEjbLink()
- Specified by:
getEjbLinkin interfaceEjbReference
-
setEjbLink
public void setEjbLink(String value)
The value of the ejb-link element must be the ejb-name of an enterprise bean in the same ejb-jar file or in another ejb-jar file in the same Java EE application unit. Alternatively, the name in the ejb-link element may be composed of a path name specifying the ejb-jar containing the referenced enterprise bean with the ejb-name of the target bean appended and separated from the path name by "#". The path name is relative to the Deployment File containing Deployment Component that is referencing the enterprise bean. This allows multiple enterprise beans with the same ejb-name to be uniquely identified. Examples:EmployeeRecord ../products/product.jar#ProductEJB
-
getMappedName
public String getMappedName()
- Specified by:
getMappedNamein interfaceJndiReference
-
setMappedName
public void setMappedName(String value)
- Specified by:
setMappedNamein interfaceJndiReference
-
getLookupName
public String getLookupName()
- Specified by:
getLookupNamein interfaceJndiReference
-
setLookupName
public void setLookupName(String lookupName)
- Specified by:
setLookupNamein interfaceJndiReference
-
getInjectionTarget
public Set<InjectionTarget> getInjectionTarget()
- Specified by:
getInjectionTargetin interfaceInjectable
-
getId
public String getId()
-
setId
public void setId(String value)
-
-