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>
An implementation of
EjbDescriptor which forwards all its method calls to another EjbDescriptor . Subclasses
should override one or more methods to modify the behavior of the backing EjbDescriptor as desired per the decorator pattern.- Author:
- Pete Muir
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract EjbDescriptor<T>delegate()Returns the delegatebooleanGets the EJB typeGet the EJB nameGets the local business interfaces of the EJBGets the remote business interfaces of the EJBGet the remove methods of the EJBinthashCode()booleanIndicates if the EJB is an MDBbooleanIndicates if the EJB is passivation capable.booleanIndicates if the bean is a EJB 3.1 Singleton session beanbooleanIndicates if the EJB is a stateful session beanbooleanIndicates if the bean is a stateless session beantoString()
-
Constructor Details
-
ForwardingEjbDescriptor
public ForwardingEjbDescriptor()
-
-
Method Details
-
delegate
Returns the delegate- Returns:
- delegate
-
getLocalBusinessInterfaces
Description copied from interface:EjbDescriptorGets the local business interfaces of the EJB- Specified by:
getLocalBusinessInterfacesin interfaceEjbDescriptor<T>- Returns:
- An iterator over the local business interfaces
-
getRemoteBusinessInterfaces
Description copied from interface:EjbDescriptorGets the remote business interfaces of the EJB- Specified by:
getRemoteBusinessInterfacesin interfaceEjbDescriptor<T>- Returns:
- An iterator over the remote business interfaces
-
getRemoveMethods
Description copied from interface:EjbDescriptorGet the remove methods of the EJB- Specified by:
getRemoveMethodsin interfaceEjbDescriptor<T>- Returns:
- An iterator over the remove methods
-
getBeanClass
Description copied from interface:EjbDescriptorGets the EJB type- Specified by:
getBeanClassin interfaceEjbDescriptor<T>- Returns:
- The EJB Bean class
-
getEjbName
Description copied from interface:EjbDescriptorGet the EJB name- Specified by:
getEjbNamein interfaceEjbDescriptor<T>- Returns:
- the EJB name
-
isMessageDriven
public boolean isMessageDriven()Description copied from interface:EjbDescriptorIndicates if the EJB is an MDB- Specified by:
isMessageDrivenin interfaceEjbDescriptor<T>- Returns:
- True if the bean is an MDB, false otherwise
-
isSingleton
public boolean isSingleton()Description copied from interface:EjbDescriptorIndicates if the bean is a EJB 3.1 Singleton session bean- Specified by:
isSingletonin interfaceEjbDescriptor<T>- Returns:
- True if the bean is a singleton, false otherwise
-
isStateful
public boolean isStateful()Description copied from interface:EjbDescriptorIndicates if the EJB is a stateful session bean- Specified by:
isStatefulin interfaceEjbDescriptor<T>- Returns:
- True if the bean is stateful, false otherwise
-
isStateless
public boolean isStateless()Description copied from interface:EjbDescriptorIndicates if the bean is a stateless session bean- Specified by:
isStatelessin interfaceEjbDescriptor<T>- Returns:
- True if stateless, false otherwise
-
isPassivationCapable
public boolean isPassivationCapable()Description copied from interface:EjbDescriptorIndicates 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
passivationCapableelement of theStatefulannotation is set to false or thepassivation-capableelement of the session deployment descriptor element is set to false
- Specified by:
isPassivationCapablein interfaceEjbDescriptor<T>- Returns:
- true if the EJB is passivation capable
-
equals
-
toString
-
hashCode
public int hashCode()
-