public class ServiceRegistryDescriptorLoaderRepository extends Object implements DescriptorLoaderRepository
DescriptorLoaderRepository that uses a ServiceRegistry to detect available implementations of
ClassLoaderModelLoader| Constructor and Description |
|---|
ServiceRegistryDescriptorLoaderRepository(ServiceRegistry serviceRegistry)
Creates a new repository
|
| Modifier and Type | Method and Description |
|---|---|
<T extends DescriptorLoader> |
get(String id,
ArtifactType artifactType,
Class<T> loaderClass)
Gets a descriptor loader from the repository
|
protected static <T extends DescriptorLoader> |
noRegisteredLoaderError(String id,
Class<T> loaderClass) |
public ServiceRegistryDescriptorLoaderRepository(ServiceRegistry serviceRegistry)
serviceRegistry - provides access to the ClassLoaderModelLoader that must be tracked on the repository. Non nullpublic <T extends DescriptorLoader> T get(String id, ArtifactType artifactType, Class<T> loaderClass) throws LoaderNotFoundException
DescriptorLoaderRepositoryget in interface DescriptorLoaderRepositoryT - type of descriptor loader to returnid - identifies the loader to obtain. Non empty.loaderClass - class of DescriptorLoader to search for. No null.LoaderNotFoundException - if there is no registered loader of type T with the provided ID.protected static <T extends DescriptorLoader> String noRegisteredLoaderError(String id, Class<T> loaderClass)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.