org.jboss.webbeans.bootstrap.spi.helpers
Class ForwardingEjbDiscovery

java.lang.Object
  extended by org.jboss.webbeans.bootstrap.spi.helpers.ForwardingEjbDiscovery
All Implemented Interfaces:
EjbDiscovery

public abstract class ForwardingEjbDiscovery
extends java.lang.Object
implements EjbDiscovery

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

Author:
Pete Muir

Field Summary
 
Fields inherited from interface org.jboss.webbeans.bootstrap.spi.EjbDiscovery
PROPERTY_NAME
 
Constructor Summary
ForwardingEjbDiscovery()
           
 
Method Summary
protected abstract  EjbDiscovery delegate()
           
 java.lang.Iterable<EjbDescriptor<?>> discoverEjbs()
          Gets a descriptor for each EJB in the application
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForwardingEjbDiscovery

public ForwardingEjbDiscovery()
Method Detail

delegate

protected abstract EjbDiscovery delegate()

discoverEjbs

public java.lang.Iterable<EjbDescriptor<?>> discoverEjbs()
Description copied from interface: EjbDiscovery
Gets a descriptor for each EJB in the application

Specified by:
discoverEjbs in interface EjbDiscovery
Returns:
The bean class to descriptor map

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 © 2008-2009. All Rights Reserved.