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 String
getEjbHomeInterface()
Returns the ejb home inteface.String
getEjbInterface()
Returns the ejb inteface.String
getEjbName()
Returns the ejb name.String
getJndiName()
Returns the jndi inteface.String
getName()
Returns the name of the reference.String
getType()
Returns the type of reference.boolean
isLocal()
Indicates if the ejb referenced is a local ejb.void
setEjbHomeInterface(String ejbHomeInterface)
Sets the ejb home interface.void
setEjbInterface(String ejbInterface)
Sets the ejb interface.void
setEjbName(String ejbName)
Sets the ejb name.void
setJndiName(String jndiName)
Sets the jndi name.void
setLocal(boolean local)
Set if the referenced ejb is a local ejb.void
setName(String name)
Sets the name of the reference.void
setType(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.
-
-