public class DefaultServiceDirectory extends java.lang.Object implements ServiceDirectory
Constructor and Description |
---|
DefaultServiceDirectory() |
Modifier and Type | Method and Description |
---|---|
<T> T |
get(java.lang.Class<T> serviceClass)
Returns implementation of the specified service class.
|
static <T> T |
getService(java.lang.Class<T> serviceClass)
Returns the reference to the implementation of the specified service.
|
public static <T> T getService(java.lang.Class<T> serviceClass)
T
- type of serviceserviceClass
- service classpublic <T> T get(java.lang.Class<T> serviceClass)
ServiceDirectory
get
in interface ServiceDirectory
T
- type of serviceserviceClass
- service class