org.jboss.weld.ejb.spi.helpers
Class ForwardingEjbServices

java.lang.Object
  extended by org.jboss.weld.ejb.spi.helpers.ForwardingEjbServices
All Implemented Interfaces:
Service, EjbServices

public abstract class ForwardingEjbServices
extends Object
implements 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
ForwardingEjbServices()
           
 
Method Summary
abstract  EjbServices delegate()
           
 boolean equals(Object obj)
           
 int hashCode()
           
 void registerInterceptors(EjbDescriptor<?> ejbDescriptor, InterceptorBindings interceptorBindings)
          Provides interceptor binding metadata to the container.
 SessionObjectReference resolveEjb(EjbDescriptor<?> ejbDescriptor)
          Request a reference to an EJB session object from the container.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.weld.bootstrap.api.Service
cleanup
 

Constructor Detail

ForwardingEjbServices

public ForwardingEjbServices()
Method Detail

delegate

public abstract EjbServices delegate()

resolveEjb

public SessionObjectReference resolveEjb(EjbDescriptor<?> ejbDescriptor)
Description copied from interface: EjbServices
Request 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:
resolveEjb in interface EjbServices
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: EjbServices
Provides interceptor binding metadata to the container. This method should be called before any EJB object is created.

Specified by:
registerInterceptors in interface EjbServices
Parameters:
ejbDescriptor - the ejb to bound interceptors to
interceptorBindings - the interceptor bindings descriptor

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013 Seam Framework. All Rights Reserved.