org.jboss.weld.ejb.spi.helpers
Class ForwadingBusinessInterfaceDescriptor<T>

java.lang.Object
  extended by org.jboss.weld.ejb.spi.helpers.ForwadingBusinessInterfaceDescriptor<T>
All Implemented Interfaces:
BusinessInterfaceDescriptor<T>

public abstract class ForwadingBusinessInterfaceDescriptor<T>
extends Object
implements BusinessInterfaceDescriptor<T>

An implementation of BusinessInterfaceDescriptor which forwards all its method calls to another BusinessInterfaceDescriptor}. Subclasses should override one or more methods to modify the behavior of the backing BusinessInterfaceDescriptor as desired per the decorator pattern.

Author:
Pete Muir

Constructor Summary
ForwadingBusinessInterfaceDescriptor()
           
 
Method Summary
protected abstract  BusinessInterfaceDescriptor<T> delegate()
           
 boolean equals(Object obj)
           
 Class<T> getInterface()
          Gets the business interface class
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForwadingBusinessInterfaceDescriptor

public ForwadingBusinessInterfaceDescriptor()
Method Detail

delegate

protected abstract BusinessInterfaceDescriptor<T> delegate()

getInterface

public Class<T> getInterface()
Description copied from interface: BusinessInterfaceDescriptor
Gets the business interface class

Specified by:
getInterface in interface BusinessInterfaceDescriptor<T>

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.