org.oddjob.arooa.registry
Class DirectoryServiceFinder

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

public class DirectoryServiceFinder
extends Object
implements ServiceFinder

A ServiceFinder that looks through a BeanDirectory for services.

Author:
rob

Constructor Summary
DirectoryServiceFinder(BeanDirectory directory)
          Only Constructor.
 
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

DirectoryServiceFinder

public DirectoryServiceFinder(BeanDirectory directory)
Only Constructor.

Parameters:
directory -
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: