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

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

public abstract class ForwadingBusinessInterfaceDescriptor<T>
extends java.lang.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(java.lang.Object obj)
           
 java.lang.Class<T> getInterface()
          Gets the business interface class
 java.lang.String getJndiName()
          Gets the JNDI name under which the EJB is registered
 int hashCode()
           
 java.lang.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 java.lang.Class<T> getInterface()
Description copied from interface: BusinessInterfaceDescriptor
Gets the business interface class

Specified by:
getInterface in interface BusinessInterfaceDescriptor<T>

getJndiName

public java.lang.String getJndiName()
Description copied from interface: BusinessInterfaceDescriptor
Gets the JNDI name under which the EJB is registered

Specified by:
getJndiName in interface BusinessInterfaceDescriptor<T>
Returns:
The JNDI name

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2011. All Rights Reserved.