Package org.codehaus.cargo.module.webapp
Class EjbRef
- java.lang.Object
-
- org.codehaus.cargo.module.webapp.EjbRef
-
public class EjbRef extends Object
Represents a ejb-ref element of a web application descriptor.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEjbHomeInterface()Returns the ejb home inteface.StringgetEjbInterface()Returns the ejb inteface.StringgetEjbName()Returns the ejb name.StringgetJndiName()Returns the jndi inteface.StringgetName()Returns the name of the reference.StringgetType()Returns the type of reference.booleanisLocal()Indicates if the ejb referenced is a local ejb.voidsetEjbHomeInterface(String ejbHomeInterface)Sets the ejb home interface.voidsetEjbInterface(String ejbInterface)Sets the ejb interface.voidsetEjbName(String ejbName)Sets the ejb name.voidsetJndiName(String jndiName)Sets the jndi name.voidsetLocal(boolean local)Set if the referenced ejb is a local ejb.voidsetName(String name)Sets the name of the reference.voidsetType(String type)Sets the type of the reference.
-
-
-
Field Detail
-
SESSION
public static final String SESSION
Constant representing an session ejb reference.- See Also:
- Constant Field Values
-
ENTITY
public static final String ENTITY
Constant representing an entity ejb reference.- See Also:
- Constant Field Values
-
-
Method Detail
-
getEjbHomeInterface
public String getEjbHomeInterface()
Returns the ejb home inteface.- Returns:
- ejb home interface.
-
setEjbHomeInterface
public void setEjbHomeInterface(String ejbHomeInterface)
Sets the ejb home interface.- Parameters:
ejbHomeInterface- the home interface of the ejb.
-
getEjbInterface
public String getEjbInterface()
Returns the ejb inteface.- Returns:
- ejb interface.
-
setEjbInterface
public void setEjbInterface(String ejbInterface)
Sets the ejb interface.- Parameters:
ejbInterface- the interface of the ejb.
-
getEjbName
public String getEjbName()
Returns the ejb name.- Returns:
- ejb name.
-
setEjbName
public void setEjbName(String ejbName)
Sets the ejb name. This will result in an ejb ref by ejb-link.- Parameters:
ejbName- the name of the ejb.
-
getJndiName
public String getJndiName()
Returns the jndi inteface.- Returns:
- jndi interface.
-
setJndiName
public void setJndiName(String jndiName)
Sets the jndi name. This will result in an ejb ref by vendor specific mappings.- Parameters:
jndiName- jndi name of the referenced ejb.
-
isLocal
public boolean isLocal()
Indicates if the ejb referenced is a local ejb.- Returns:
- true if the ejb referenced is a local ejb.
-
setLocal
public void setLocal(boolean local)
Set if the referenced ejb is a local ejb.- Parameters:
local- true if the referenced ejb is local.
-
getName
public String getName()
Returns the name of the reference.- Returns:
- name of the reference.
-
setName
public void setName(String name)
Sets the name of the reference.- Parameters:
name- name of the reference.
-
getType
public String getType()
Returns the type of reference.
-
-