public class FileSystemPolicyClassLoaderModelLoader extends Object implements ClassLoaderModelLoader
ClassLoaderModel from a policy's folder| Modifier and Type | Field and Description |
|---|---|
static String |
FILE_SYSTEM_POLICY_MODEL_LOADER_ID |
| Constructor and Description |
|---|
FileSystemPolicyClassLoaderModelLoader() |
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
ClassLoaderModel |
load(File artifactFolder,
Map<String,Object> attributes,
ArtifactType artifactType)
Given a policy template's location it will build a
ClassLoaderModel taking in account jars located inside the
folder and resources located inside the artifact folder. |
boolean |
supportsArtifactType(ArtifactType artifactType) |
public static final String FILE_SYSTEM_POLICY_MODEL_LOADER_ID
public FileSystemPolicyClassLoaderModelLoader()
public String getId()
getId in interface DescriptorLoader<ClassLoaderModel>public ClassLoaderModel load(File artifactFolder, Map<String,Object> attributes, ArtifactType artifactType) throws InvalidDescriptorLoaderException
ClassLoaderModel taking in account jars located inside the
folder and resources located inside the artifact folder.load in interface DescriptorLoader<ClassLoaderModel>artifactFolder - File where the current plugin to work with.attributes - collection of attributes describing the loader. Non null.artifactType - artifactType the type of the artifact of the descriptor to be loaded.ClassLoaderModel loaded with all its dependencies and URLsInvalidDescriptorLoaderExceptionpublic boolean supportsArtifactType(ArtifactType artifactType)
supportsArtifactType in interface DescriptorLoader<ClassLoaderModel>Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.