org.jboss.webbeans.ejb.spi
Interface EjbDescriptor<T>

Type Parameters:
T - the bean type
All Known Implementing Classes:
ForwardingEjbDescriptor, ForwardingEjbDescriptor, InternalEjbDescriptor

public interface EjbDescriptor<T>

EJB metadata from the EJB descriptor

Author:
Pete Muir

Method Summary
 java.lang.String getEjbName()
          Gets the EJB name
 java.lang.Iterable<BusinessInterfaceDescriptor<?>> getLocalBusinessInterfaces()
          Gets the local business interfaces of the EJB
 java.lang.Iterable<BusinessInterfaceDescriptor<?>> getRemoteBusinessInterfaces()
          Gets the remote business interfaces of the EJB
 java.lang.Iterable<java.lang.reflect.Method> getRemoveMethods()
          Get the remove methods of the EJB
 java.lang.Class<T> getType()
          Gets the EJB type
 boolean isMessageDriven()
          Indicates if the EJB is and MDB
 boolean isSingleton()
          Indicates if the bean is a EJB 3.1 Singleton
 boolean isStateful()
          Indicates if the EJB is stateful
 boolean isStateless()
          Indicates if the bean is stateless
 

Method Detail

getType

java.lang.Class<T> getType()
Gets the EJB type

Returns:
The EJB Bean class

getLocalBusinessInterfaces

java.lang.Iterable<BusinessInterfaceDescriptor<?>> getLocalBusinessInterfaces()
Gets the local business interfaces of the EJB

Returns:
An iterator over the local business interfaces

getRemoteBusinessInterfaces

java.lang.Iterable<BusinessInterfaceDescriptor<?>> getRemoteBusinessInterfaces()
Gets the remote business interfaces of the EJB

Returns:
An iterator over the remote business interfaces

getRemoveMethods

java.lang.Iterable<java.lang.reflect.Method> getRemoveMethods()
Get the remove methods of the EJB

Returns:
An iterator over the remove methods

isStateless

boolean isStateless()
Indicates if the bean is stateless

Returns:
True if stateless, false otherwise

isSingleton

boolean isSingleton()
Indicates if the bean is a EJB 3.1 Singleton

Returns:
True if the bean is a singleton, false otherwise

isStateful

boolean isStateful()
Indicates if the EJB is stateful

Returns:
True if the bean is stateful, false otherwise

isMessageDriven

boolean isMessageDriven()
Indicates if the EJB is and MDB

Returns:
True if the bean is an MDB, false otherwise

getEjbName

java.lang.String getEjbName()
Gets the EJB name

Returns:
The name


Copyright © 2011. All Rights Reserved.