Package jakarta.enterprise.inject.spi
Interface ProcessSessionBean<X>
- 
- Type Parameters:
- X- session bean type
 - All Superinterfaces:
- ProcessBean<Object>,- ProcessManagedBean<Object>
 
 public interface ProcessSessionBean<X> extends ProcessManagedBean<Object> The container fires an event of this type for each enabled session bean, before registering the Beanobject.If any observer method of a ProcessSessionBeanevent throws an exception, the exception is treated as a definition error by the container.Note that the type parameter of the super-interface of ProcessSessionBeanisObjectasProcessBeanallows you access to theBean, which in turn allows you to instantiate an instance, which, for interface-view EJBs will not be an instance of X.CDI Lite implementations are not required to provide support for Portable Extensions. - Author:
- David Allen
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetEjbName()Returns the EJB name of the session bean.SessionBeanTypegetSessionBeanType()Returns aSessionBeanTyperepresenting the kind of session bean.- 
Methods inherited from interface jakarta.enterprise.inject.spi.ProcessBeanaddDefinitionError, getAnnotated, getBean
 - 
Methods inherited from interface jakarta.enterprise.inject.spi.ProcessManagedBeangetAnnotatedBeanClass
 
- 
 
- 
- 
- 
Method Detail- 
getEjbNameString getEjbName() Returns the EJB name of the session bean.- Returns:
- the name of the EJB
- Throws:
- IllegalStateException- if called outside of the observer method invocation
 
 - 
getSessionBeanTypeSessionBeanType getSessionBeanType() Returns aSessionBeanTyperepresenting the kind of session bean.- Returns:
- the SessionBeanType
- Throws:
- IllegalStateException- if called outside of the observer method invocation
 
 
- 
 
-