blob: ee33fa235e36948dd715c12ffb05d0b3630dbf9e [file] [log] [blame]
package org.onlab.osgi;
/**
* Simple abstraction of a service directory where service implementations can
* be found by the class name of the interfaces they provide.
*/
public interface ServiceDirectory {
/**
* Returns implementation of the specified service class.
* @param serviceClass service class
* @param <T> type of service
* @return implementation class
* @throws ServiceNotFoundException if no implementation found
*/
<T> T get(Class<T> serviceClass);
}