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) |
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
get in interface DescriptorLoaderRepositoryLoaderNotFoundExceptionprotected static <T extends DescriptorLoader> String noRegisteredLoaderError(String id, Class<T> loaderClass)
Copyright © 2003–2018 MuleSoft, Inc.. All rights reserved.