org.enhydra.barracuda.core.util.srv
Class SimpleServiceFinder

java.lang.Object
  extended byorg.enhydra.barracuda.plankton.srv.SimpleServiceFinder
      extended byorg.enhydra.barracuda.core.util.srv.SimpleServiceFinder

public class SimpleServiceFinder
extends SimpleServiceFinder

Similar to org.enhydra.barracuda.plankton.srv.SimpleServiceProvider, except that it will also search EventGateway heirarchies.


Field Summary
protected static org.apache.log4j.Logger logger
           
 
Fields inherited from class org.enhydra.barracuda.plankton.srv.SimpleServiceFinder
DOWNSTREAM, UPSTREAM
 
Constructor Summary
SimpleServiceFinder()
           
 
Method Summary
static Object findInstance(Class c, EventGateway gateway)
          Find an instance of a Class in an EventGateway heirarchy.
static Object findInstance(Class c, EventGateway gateway, int searchDirection)
          Find an instance of a Class in an EventGateway heirarchy
 
Methods inherited from class org.enhydra.barracuda.plankton.srv.SimpleServiceFinder
findInstance, findInstance, findInstance, findInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger
Constructor Detail

SimpleServiceFinder

public SimpleServiceFinder()
Method Detail

findInstance

public static Object findInstance(Class c,
                                  EventGateway gateway)
Find an instance of a Class in an EventGateway heirarchy. Search direction defaults to UPSTREAM

Parameters:
c - the class we're looking for
gateway - the entry point to the EventGateway heirarchy
Returns:
the first instance of the specified class

findInstance

public static Object findInstance(Class c,
                                  EventGateway gateway,
                                  int searchDirection)
Find an instance of a Class in an EventGateway heirarchy

Parameters:
c - the class we're looking for
gateway - the entry point to the EventGateway heirarchy
searchDirection - the search direction
Returns:
the first instance of the specified class


Copyright © 2003 BarracudaMVC.org All Rights Reserved.