| java.lang.Object org.mockejb.BasicEjbDescriptor org.mockejb.SessionBeanDescriptor
SessionBeanDescriptor | public class SessionBeanDescriptor extends BasicEjbDescriptor (Code) | | Provides Session bean-specific information required by MockContainer
to deploy session EJB.
The only piece if session-bean specific data is isStateful flag.
author: Alexander Ananiev |
Method Summary | |
public boolean | isStateful() Returns true if this bean is the stateful bean. | public void | setStateful(boolean isStateful) |
SessionBeanDescriptor | public SessionBeanDescriptor(String jndiName, Class homeClass, Class ifaceClass, Class beanClass)(Code) | | Creates a new instance of the descriptor.
Parameters: jndiName - jndiName to bind Home to. Note that MockEjb does not supportbean-scoped context, so this name must be unique. Parameters: homeClass - class of the home interface Parameters: ifaceClass - class of the business interface, remote or local Parameters: beanClass - class of the implementation class |
SessionBeanDescriptor | public SessionBeanDescriptor(String jndiName, Class homeClass, Class ifaceClass, Object bean)(Code) | | Creates a new instance of the descriptor.
Parameters: jndiName - jndiName to bind Home to. Note that MockEjb does not supportbean-scoped context, so this name must be unique. Parameters: homeClass - class of the home interface Parameters: ifaceClass - class of the business interface, remote or local Parameters: bean - instance of a bean implementation class. |
isStateful | public boolean isStateful()(Code) | | Returns true if this bean is the stateful bean. Note that MockEJB treats
stateless and stateful session beans exactly the same way since there is no
pooling involved.
This setting is only used by EJBMetaData in case if the client calls
isStateless method.
true if the bean is the stateful bean. |
setStateful | public void setStateful(boolean isStateful)(Code) | | |
|
|