org.oddjob.arooa.registry
Class ContextHierarchyServiceFinder

java.lang.Object
  extended by org.oddjob.arooa.registry.ContextHierarchyServiceFinder
All Implemented Interfaces:
ServiceFinder

public class ContextHierarchyServiceFinder
extends Object
implements ServiceFinder

A ServiceFinder] that uses the hierarchy of {@link ArooaContext}s to find a service.

Author:
rob

Constructor Summary
ContextHierarchyServiceFinder(ArooaContext arooaContext)
          Create a new instance of this service finder..
 
Method Summary
<T> T
find(Class<T> cl, String flavour)
          Find a service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextHierarchyServiceFinder

public ContextHierarchyServiceFinder(ArooaContext arooaContext)
Create a new instance of this service finder..

Parameters:
arooaContext - The starting context.
Method Detail

find

public <T> T find(Class<T> cl,
                  String flavour)
Description copied from interface: ServiceFinder
Find a service.

Specified by:
find in interface ServiceFinder
Parameters:
cl - The class of the service.
flavour - The flavour of the service. Not yet implemented.
Returns: