Package org.onlab.osgi
Interface ServiceDirectory
-
- All Known Implementing Classes:
DefaultServiceDirectory
public interface ServiceDirectory
Simple 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> T
get(java.lang.Class<T> serviceClass)
Returns implementation of the specified service class.
-
-
-
Method Detail
-
get
<T> T get(java.lang.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
-
-