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