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