Package org.jboss.weld.ejb.spi
Interface EjbDescriptor<T>
-
- Type Parameters:
T
- the bean type
- All Known Implementing Classes:
ForwardingEjbDescriptor
public interface EjbDescriptor<T>
EJB metadata from the EJB descriptor. The implementation may optionally implementSubclassedComponentDescriptor
if it uses an enhances subclass to implement EJB functionality.- Author:
- Pete Muir
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<T>
getBeanClass()
Gets the EJB typeString
getEjbName()
Get the EJB nameCollection<BusinessInterfaceDescriptor<?>>
getLocalBusinessInterfaces()
Gets the local business interfaces of the EJBCollection<BusinessInterfaceDescriptor<?>>
getRemoteBusinessInterfaces()
Gets the remote business interfaces of the EJBCollection<Method>
getRemoveMethods()
Get the remove methods of the EJBboolean
isMessageDriven()
Indicates if the EJB is an MDBboolean
isPassivationCapable()
Indicates if the EJB is passivation capable.boolean
isSingleton()
Indicates if the bean is a EJB 3.1 Singleton session beanboolean
isStateful()
Indicates if the EJB is a stateful session beanboolean
isStateless()
Indicates if the bean is a stateless session bean
-
-
-
Method Detail
-
getLocalBusinessInterfaces
Collection<BusinessInterfaceDescriptor<?>> getLocalBusinessInterfaces()
Gets the local business interfaces of the EJB- Returns:
- An iterator over the local business interfaces
-
getRemoteBusinessInterfaces
Collection<BusinessInterfaceDescriptor<?>> getRemoteBusinessInterfaces()
Gets the remote business interfaces of the EJB- Returns:
- An iterator over the remote business interfaces
-
getEjbName
String getEjbName()
Get the EJB name- Returns:
- the EJB name
-
getRemoveMethods
Collection<Method> getRemoveMethods()
Get the remove methods of the EJB- Returns:
- An iterator over the remove methods
-
isStateless
boolean isStateless()
Indicates if the bean is a stateless session bean- Returns:
- True if stateless, false otherwise
-
isSingleton
boolean isSingleton()
Indicates if the bean is a EJB 3.1 Singleton session bean- Returns:
- True if the bean is a singleton, false otherwise
-
isStateful
boolean isStateful()
Indicates if the EJB is a stateful session bean- Returns:
- True if the bean is stateful, false otherwise
-
isMessageDriven
boolean isMessageDriven()
Indicates if the EJB is an MDB- Returns:
- True if the bean is an MDB, false otherwise
-
isPassivationCapable
boolean isPassivationCapable()
Indicates if the EJB is passivation capable.
- Stateless session beans, singleton session beans and MDBs are not passivation capable.
- A stateful session bean is passivation capable unless the
passivationCapable
element of theStateful
annotation is set to false or thepassivation-capable
element of the session deployment descriptor element is set to false
- Returns:
- true if the EJB is passivation capable
-
-