Package org.jboss.weld.ejb.spi.helpers
Class ForwardingEjbDescriptor<T>
- java.lang.Object
-
- org.jboss.weld.ejb.spi.helpers.ForwardingEjbDescriptor<T>
-
- All Implemented Interfaces:
EjbDescriptor<T>
public abstract class ForwardingEjbDescriptor<T> extends Object implements EjbDescriptor<T>
An implementation ofEjbDescriptor
which forwards all its method calls to anotherEjbDescriptor
. Subclasses should override one or more methods to modify the behavior of the backingEjbDescriptor
as desired per the decorator pattern.- Author:
- Pete Muir
-
-
Constructor Summary
Constructors Constructor Description ForwardingEjbDescriptor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract EjbDescriptor<T>
delegate()
boolean
equals(Object obj)
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 EJBint
hashCode()
boolean
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 beanString
toString()
-
-
-
Method Detail
-
delegate
protected abstract EjbDescriptor<T> delegate()
-
getLocalBusinessInterfaces
public Collection<BusinessInterfaceDescriptor<?>> getLocalBusinessInterfaces()
Description copied from interface:EjbDescriptor
Gets the local business interfaces of the EJB- Specified by:
getLocalBusinessInterfaces
in interfaceEjbDescriptor<T>
- Returns:
- An iterator over the local business interfaces
-
getRemoteBusinessInterfaces
public Collection<BusinessInterfaceDescriptor<?>> getRemoteBusinessInterfaces()
Description copied from interface:EjbDescriptor
Gets the remote business interfaces of the EJB- Specified by:
getRemoteBusinessInterfaces
in interfaceEjbDescriptor<T>
- Returns:
- An iterator over the remote business interfaces
-
getRemoveMethods
public Collection<Method> getRemoveMethods()
Description copied from interface:EjbDescriptor
Get the remove methods of the EJB- Specified by:
getRemoveMethods
in interfaceEjbDescriptor<T>
- Returns:
- An iterator over the remove methods
-
getBeanClass
public Class<T> getBeanClass()
Description copied from interface:EjbDescriptor
Gets the EJB type- Specified by:
getBeanClass
in interfaceEjbDescriptor<T>
- Returns:
- The EJB Bean class
-
getEjbName
public String getEjbName()
Description copied from interface:EjbDescriptor
Get the EJB name- Specified by:
getEjbName
in interfaceEjbDescriptor<T>
- Returns:
- the EJB name
-
isMessageDriven
public boolean isMessageDriven()
Description copied from interface:EjbDescriptor
Indicates if the EJB is an MDB- Specified by:
isMessageDriven
in interfaceEjbDescriptor<T>
- Returns:
- True if the bean is an MDB, false otherwise
-
isSingleton
public boolean isSingleton()
Description copied from interface:EjbDescriptor
Indicates if the bean is a EJB 3.1 Singleton session bean- Specified by:
isSingleton
in interfaceEjbDescriptor<T>
- Returns:
- True if the bean is a singleton, false otherwise
-
isStateful
public boolean isStateful()
Description copied from interface:EjbDescriptor
Indicates if the EJB is a stateful session bean- Specified by:
isStateful
in interfaceEjbDescriptor<T>
- Returns:
- True if the bean is stateful, false otherwise
-
isStateless
public boolean isStateless()
Description copied from interface:EjbDescriptor
Indicates if the bean is a stateless session bean- Specified by:
isStateless
in interfaceEjbDescriptor<T>
- Returns:
- True if stateless, false otherwise
-
isPassivationCapable
public boolean isPassivationCapable()
Description copied from interface:EjbDescriptor
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
- Specified by:
isPassivationCapable
in interfaceEjbDescriptor<T>
- Returns:
- true if the EJB is passivation capable
-
-