Package org.onlab.osgi
Interface ServiceDirectory
- 
- All Known Implementing Classes:
 DefaultServiceDirectory
public interface ServiceDirectorySimple abstraction of a service directory where service implementations can be found by the class name of the interfaces they provide. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Tget(Class<T> serviceClass)Returns implementation of the specified service class. 
 - 
 
- 
- 
Method Detail
- 
get
<T> T get(Class<T> serviceClass)
Returns implementation of the specified service class.- Type Parameters:
 T- type of service- Parameters:
 serviceClass- service class- Returns:
 - implementation class
 - Throws:
 ServiceNotFoundException- if no implementation found
 
 - 
 
 -