-
- Type Parameters:
X
- session bean type
- All Superinterfaces:
ProcessBean<java.lang.Object>
,ProcessManagedBean<java.lang.Object>
public interface ProcessSessionBean<X> extends ProcessManagedBean<java.lang.Object>
The container fires an event of this type for each enabled session bean, before registering the
Bean
object.If any observer method of a
ProcessSessionBean
event throws an exception, the exception is treated as a definition error by the container.Note that the type parameter of the super-interface of
ProcessSessionBean
isObject
asProcessBean
allows 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getEjbName()
Returns the EJB name of the session bean.SessionBeanType
getSessionBeanType()
Returns aSessionBeanType
representing the kind of session bean.-
Methods inherited from interface jakarta.enterprise.inject.spi.ProcessBean
addDefinitionError, getAnnotated, getBean
-
Methods inherited from interface jakarta.enterprise.inject.spi.ProcessManagedBean
getAnnotatedBeanClass
-
-
-
-
Method Detail
-
getEjbName
java.lang.String getEjbName()
Returns the EJB name of the session bean.- Returns:
- the name of the EJB
- Throws:
java.lang.IllegalStateException
- if called outside of the observer method invocation
-
getSessionBeanType
SessionBeanType getSessionBeanType()
Returns aSessionBeanType
representing the kind of session bean.- Returns:
- the
SessionBeanType
- Throws:
java.lang.IllegalStateException
- if called outside of the observer method invocation
-
-