org.eclipse.jst.server.core
Class EJBBean

java.lang.Object
  extended byorg.eclipse.jst.server.core.EJBBean

public class EJBBean
extends java.lang.Object

An EJB bean.

Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Constructor Summary
EJBBean(IModule module, java.lang.String jndiName, boolean remote, boolean local)
          Create a new EJBBean.
 
Method Summary
 java.lang.String getJndiName()
          Returns the JNDI name of the EJB.
 IModule getModule()
           
 boolean hasLocalInterface()
          Returns whether the EJB has a local interface.
 boolean hasRemoteInterface()
          Returns whether the EJB has a remote interface.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBBean

public EJBBean(IModule module,
               java.lang.String jndiName,
               boolean remote,
               boolean local)
Create a new EJBBean.

Parameters:
module - the module that the EJB is contained in
jndiName - the JNDI name of the EJB
remote - true if the EJB has a remote interface, and false otherwise
local - true if the EJB has a local interface, and false otherwise
Method Detail

getModule

public IModule getModule()
See Also:
IModuleArtifact#getModule()

getJndiName

public java.lang.String getJndiName()
Returns the JNDI name of the EJB.

Returns:
the JNDI name of the EJB

hasRemoteInterface

public boolean hasRemoteInterface()
Returns whether the EJB has a remote interface.

Returns:
true if the EJB has a remote interface, and false otherwise

hasLocalInterface

public boolean hasLocalInterface()
Returns whether the EJB has a local interface.

Returns:
true if the EJB has a local interface, and false otherwise