Package org.jboss.weld.ejb.spi.helpers
Class ForwardingEjbServices
java.lang.Object
org.jboss.weld.ejb.spi.helpers.ForwardingEjbServices
- All Implemented Interfaces:
Service,EjbServices
An implementation of
EjbServices which forwards all its method calls to another EjbServices . Subclasses
should override one or more methods to modify the behavior of the backing EjbServices as desired per the decorator pattern.- Author:
- Pete Muir
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract EjbServicesdelegate()Returns the delegatebooleaninthashCode()voidregisterInterceptors(EjbDescriptor<?> ejbDescriptor, InterceptorBindings interceptorBindings) Provides interceptor binding metadata to the container.resolveEjb(EjbDescriptor<?> ejbDescriptor) Request a reference to an EJB session object from the container.toString()
-
Constructor Details
-
ForwardingEjbServices
public ForwardingEjbServices()
-
-
Method Details
-
delegate
Returns the delegate- Returns:
- delegate
-
resolveEjb
Description copied from interface:EjbServicesRequest a reference to an EJB session object from the container. If the EJB being resolved is a stateful session bean, the container should ensure the session bean is created before this method returns.- Specified by:
resolveEjbin interfaceEjbServices- Parameters:
ejbDescriptor- the ejb to resolve- Returns:
- a reference to the session object
-
registerInterceptors
public void registerInterceptors(EjbDescriptor<?> ejbDescriptor, InterceptorBindings interceptorBindings) Description copied from interface:EjbServicesProvides interceptor binding metadata to the container. This method should be called before any EJB object is created.- Specified by:
registerInterceptorsin interfaceEjbServices- Parameters:
ejbDescriptor- the ejb to bound interceptors tointerceptorBindings- the interceptor bindings descriptor
-
equals
-
toString
-
hashCode
public int hashCode()
-