public class DefaultServiceLocator extends java.lang.Object implements ServiceLocator
WARNING: This class is part of internal implementation of XMvn and it is marked as public only for technical reasons. This class is not part of XMvn API. Client code using XMvn should not reference it directly.
Constructor and Description |
---|
DefaultServiceLocator() |
Modifier and Type | Method and Description |
---|---|
<T> void |
addService(java.lang.Class<T> role,
java.lang.Class<? extends T> serviceProvider) |
<T> T |
getService(java.lang.Class<T> role)
Load an instance of XMvn service.
|
public <T> void addService(java.lang.Class<T> role, java.lang.Class<? extends T> serviceProvider)
public <T> T getService(java.lang.Class<T> role)
ServiceLocator
getService
in interface ServiceLocator
role
- interface class identifying requested servicenull
.Copyright © 2012–2017 Red Hat, Inc.. All rights reserved.