org.ow2.jonas.cdi.weld.internal.ejb
Class JEjbDescriptor<T>

java.lang.Object
  extended by org.ow2.jonas.cdi.weld.internal.ejb.JEjbDescriptor<T>
All Implemented Interfaces:
org.jboss.weld.ejb.spi.EjbDescriptor<T>

public class JEjbDescriptor<T>
extends Object
implements org.jboss.weld.ejb.spi.EjbDescriptor<T>

Created by IntelliJ IDEA. User: sauthieg Date: 8 févr. 2010 Time: 15:05:09 To change this template use File | Settings | File Templates.


Constructor Summary
JEjbDescriptor()
           
 
Method Summary
 Class<T> getBeanClass()
          Gets the EJB type
 String getEjbName()
          Get the EJB name
 Collection<org.jboss.weld.ejb.spi.BusinessInterfaceDescriptor<?>> getLocalBusinessInterfaces()
          Gets the local 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JEjbDescriptor

public JEjbDescriptor()
Method Detail

getBeanClass

public Class<T> getBeanClass()
Gets the EJB type

Specified by:
getBeanClass in interface org.jboss.weld.ejb.spi.EjbDescriptor<T>
Returns:
The EJB Bean class

getLocalBusinessInterfaces

public Collection<org.jboss.weld.ejb.spi.BusinessInterfaceDescriptor<?>> getLocalBusinessInterfaces()
Gets the local business interfaces of the EJB

Specified by:
getLocalBusinessInterfaces in interface org.jboss.weld.ejb.spi.EjbDescriptor<T>
Returns:
An iterator over the local business interfaces

getEjbName

public String getEjbName()
Get the EJB name

Specified by:
getEjbName in interface org.jboss.weld.ejb.spi.EjbDescriptor<T>
Returns:

getRemoveMethods

public Collection<Method> getRemoveMethods()
Get the remove methods of the EJB

Specified by:
getRemoveMethods in interface org.jboss.weld.ejb.spi.EjbDescriptor<T>
Returns:
An iterator over the remove methods

isStateless

public boolean isStateless()
Indicates if the bean is a stateless session bean

Specified by:
isStateless in interface org.jboss.weld.ejb.spi.EjbDescriptor<T>
Returns:
True if stateless, false otherwise

isSingleton

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

Specified by:
isSingleton in interface org.jboss.weld.ejb.spi.EjbDescriptor<T>
Returns:
True if the bean is a singleton, false otherwise

isStateful

public boolean isStateful()
Indicates if the EJB is a stateful session bean

Specified by:
isStateful in interface org.jboss.weld.ejb.spi.EjbDescriptor<T>
Returns:
True if the bean is stateful, false otherwise

isMessageDriven

public boolean isMessageDriven()
Indicates if the EJB is an MDB

Specified by:
isMessageDriven in interface org.jboss.weld.ejb.spi.EjbDescriptor<T>
Returns:
True if the bean is an MDB, false otherwise


Copyright © 2010 OW2 Consortium. All Rights Reserved.