/** * @return relative path for shared libraries on an application */ public static String getAppSharedLibsFolderPath() { return getAppLibsFolderPath() + SHARED_FOLDER + separator; }
@Override public List<MuleModule> getModules() { return moduleRepository.getModules(); } }
/** * Creates a new instance that discover services from Mule Runtime services folder. * * @param containerClassLoader container artifact classLoader. Non null. * @param serviceClassLoaderFactory factory used to create service's classloaders. Non null. * @param descriptorLoaderRepository contains all the {@link ClassLoaderModelLoader} registered on the container. Non null * @param artifactDescriptorValidatorBuilder {@link ArtifactDescriptorValidatorBuilder} to create the {@link org.mule.runtime.module.artifact.api.descriptor.ArtifactDescriptorValidator} in order to check the state of the descriptor once loaded. */ public FileSystemServiceProviderDiscoverer(ArtifactClassLoader containerClassLoader, ArtifactClassLoaderFactory<ServiceDescriptor> serviceClassLoaderFactory, DescriptorLoaderRepository descriptorLoaderRepository, ArtifactDescriptorValidatorBuilder artifactDescriptorValidatorBuilder) { this(containerClassLoader, serviceClassLoaderFactory, descriptorLoaderRepository, artifactDescriptorValidatorBuilder, () -> MuleFoldersUtil.getServicesFolder()); }
/** * @return a {@link File} pointing to the container folder used to temporarily store the exported module services for SPI. */ public static File getModulesTempFolder() { return new File(getExecutionFolder(), MODULES_FOLDER); }
/** * @return a {@link File} pointing to the container folder that contains services. */ public static File getServicesFolder() { return new File(getMuleBaseFolder(), SERVICES_FOLDER); }
@Override protected File getArtifactFolder() { return getDomainFolder(ARTIFACT_NAME); }
/** * @param appName name of the application to look for * @return the shared libraries folder in the deployed application with the given name */ public static File getAppSharedLibsFolder(String appName) { return new File(getAppFolder(appName), getAppSharedLibsFolderPath()); }
/** * @param appName name of the application to look for * @return the libraries folder in the deployed application with the given name */ public static File getAppLibFolder(String appName) { return new File(getAppFolder(appName), getAppLibsFolderPath()); }
/** * @param appName name of the application to look for * @return the plugins folder in the deployed application with the given name */ public static File getAppPluginsFolder(String appName) { return new File(getAppFolder(appName), getAppPluginsFolderPath()); }
@Override protected File getArtifactFolder() { return getAppFolder(ARTIFACT_NAME); }
/** * Creates a module with the configured state * * @return a new {@link MuleModule} with the configured state. */ public MuleModule build() { return new MuleModule(name, packages, resources, emptySet(), emptySet(), emptyList()); } }
public void addCoreExtension(MuleCoreExtension coreExtension) { coreExtension.setContainerClassLoader(containerClassLoader); coreExtensions.add(coreExtension); }
@MuleCoreExtensionDependency public void setTestCoreExtension(TestCoreExtension coreExtension) { } }
/** * @return a {@link File} pointing to the container folder used to temporarily store services on deployment */ public static File getServicesTempFolder() { return new File(getExecutionFolder(), SERVICES_FOLDER); }
/** * @return the runtime repository folder for maven artifacts. */ private static File getRuntimeRepositoryFolder() { return new File(MuleFoldersUtil.getMuleBaseFolder(), "repository"); }
@MuleCoreExtensionDependency void setTestCoreExtension(TestCoreExtension coreExtension); }
/** * @return a {@link File} pointing to the folder where the server configuration is located. */ public static File getConfFolder() { return new File(getMuleBaseFolder(), CONF); }
@MuleCoreExtensionDependency void setTestCoreExtension(TestCoreExtension coreExtension); }
/** * @return relative path for libraries on an application */ public static File getExecutionFolder() { return new File(getMuleBaseFolder(), EXECUTION_FOLDER); }