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

Author:
Pete Muir

Method Summary
 Class<T> getBeanClass()
          Gets the EJB type
 String getEjbName()
          Get the EJB name
 Collection<BusinessInterfaceDescriptor<?>> getLocalBusinessInterfaces()
          Gets the local business interfaces of the EJB
 Collection<BusinessInterfaceDescriptor<?>> getRemoteBusinessInterfaces()
          Gets the remote business interfaces of the EJB
 Collection<Method> getRemoveMethods()
          Get the remove methods of the EJB
 boolean isMessageDriven()
          Indicates if the EJB is an MDB
 boolean isSingleton()
          Indicates if the bean is a EJB 3.1 Singleton session bean
 boolean isStateful()
          Indicates if the EJB is a stateful session bean
 boolean isStateless()
          Indicates if the bean is a stateless session bean
 

Method Detail

getBeanClass

Class<T> getBeanClass()
Gets the EJB type

Returns:
The EJB Bean class

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:

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


Copyright © 2013 Seam Framework. All Rights Reserved.