Class EjbRef


  • public class EjbRef
    extends Object
    Represents a ejb-ref element of a web application descriptor.
    • Constructor Detail

      • EjbRef

        public EjbRef()
        Empty constructor.
      • EjbRef

        public EjbRef​(String name,
                      String ejbInterface,
                      String ejbHomeInterface)
        Construct a new ejb-ref.
        Parameters:
        name - Name of the reference. For example ejb/MyEjb.
        ejbInterface - Class name of the ejb interface.
        ejbHomeInterface - Class name of the ejb home interface.
    • 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.
        Returns:
        type of reference.
        See Also:
        SESSION, ENTITY
      • setType

        public void setType​(String type)
        Sets the type of the reference.
        Parameters:
        type - type of reference.
        See Also:
        SESSION, ENTITY