use of org.mule.runtime.config.internal.dsl.model.ClassLoaderResourceProvider in project mule by mulesoft.
the class FileConfigurationPropertiesProviderTestCase method createResolver.
@Before
public void createResolver() {
ResourceProvider externalResourceProvider = new ClassLoaderResourceProvider(Thread.currentThread().getContextClassLoader());
resolver = new DefaultConfigurationPropertiesResolver(Optional.empty(), new FileConfigurationPropertiesProvider(externalResourceProvider, "External provider"));
}
use of org.mule.runtime.config.internal.dsl.model.ClassLoaderResourceProvider in project mule by mulesoft.
the class MuleArtifactContext method createApplicationModel.
private void createApplicationModel() {
try {
ArtifactConfig artifactConfig = resolveArtifactConfig();
Set<ExtensionModel> extensions = muleContext.getExtensionManager() != null ? muleContext.getExtensionManager().getExtensions() : emptySet();
ResourceProvider externalResourceProvider = new ClassLoaderResourceProvider(muleContext.getExecutionClassLoader());
applicationModel = new ApplicationModel(artifactConfig, artifactDeclaration, extensions, artifactProperties, parentConfigurationProperties, of(componentBuildingDefinitionRegistry), true, externalResourceProvider);
} catch (MuleRuntimeException e) {
throw e;
} catch (Exception e) {
throw new MuleRuntimeException(e);
}
}
Aggregations