public class IsolatedXMvnServiceLocator extends Object
This service locator uses a separate class loader to load XMvn classes and all of its dependencies.
| Constructor and Description |
|---|
IsolatedXMvnServiceLocator(ClassLoader classLoader)
Create a new instance of
IsolatedXMvnServiceLocator. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getService(Class<T> role)
Load an instance of XMvn service.
|
public IsolatedXMvnServiceLocator(ClassLoader classLoader)
IsolatedXMvnServiceLocator.classLoader - class loader to load XMvn classes frompublic <T> T getService(Class<T> role)
role - interface class identifying requested servicenull.Copyright © 2012-2017 Red Hat, Inc.. All Rights Reserved.