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

Type Parameters:
T -

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.String getLocalJndiName()
           
 java.lang.Iterable<BusinessInterfaceDescriptor<?>> getRemoteBusinessInterfaces()
          Gets the remote business interfaces of the EJB
 java.lang.Iterable<MethodDescriptor> 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<MethodDescriptor> 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

getLocalJndiName

java.lang.String getLocalJndiName()
Returns:
The JNDI string which can be used to lookup a proxy which implements all local business interfaces


Copyright © 2008. All Rights Reserved.