public class SessionBeanDescriptor extends BasicEjbDescriptor
isStateful flag.| Constructor and Description |
|---|
SessionBeanDescriptor(java.lang.String jndiName,
java.lang.Class homeClass,
java.lang.Class ifaceClass,
java.lang.Class beanClass)
Creates a new instance of the descriptor.
|
SessionBeanDescriptor(java.lang.String jndiName,
java.lang.Class homeClass,
java.lang.Class ifaceClass,
java.lang.Object bean)
Creates a new instance of the descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStateful()
Returns true if this bean is the stateful bean.
|
void |
setStateful(boolean isStateful) |
getBean, getBeanClass, getHomeClass, getIfaceClass, getJndiNamepublic SessionBeanDescriptor(java.lang.String jndiName,
java.lang.Class homeClass,
java.lang.Class ifaceClass,
java.lang.Class beanClass)
jndiName - jndiName to bind Home to. Note that MockEjb does not support
bean-scoped context, so this name must be unique.homeClass - class of the home interfaceifaceClass - class of the business interface, remote or localbeanClass - class of the implementation classpublic SessionBeanDescriptor(java.lang.String jndiName,
java.lang.Class homeClass,
java.lang.Class ifaceClass,
java.lang.Object bean)
jndiName - jndiName to bind Home to. Note that MockEjb does not support
bean-scoped context, so this name must be unique.homeClass - class of the home interfaceifaceClass - class of the business interface, remote or localbean - instance of a bean implementation class.public void setStateful(boolean isStateful)
public boolean isStateful()