|
39 | 39 | import static org.mule.runtime.api.config.MuleRuntimeFeature.PARALLEL_FOREACH_FLATTEN_MESSAGE;
|
40 | 40 | import static org.mule.runtime.api.config.MuleRuntimeFeature.PUT_TRACE_ID_AND_SPAN_ID_IN_MDC;
|
41 | 41 | import static org.mule.runtime.api.config.MuleRuntimeFeature.RETHROW_EXCEPTIONS_IN_IDEMPOTENT_MESSAGE_VALIDATOR;
|
| 42 | +import static org.mule.runtime.api.config.MuleRuntimeFeature.SEPARATE_CLASSLOADER_FOR_POLICY_ISOLATION; |
42 | 43 | import static org.mule.runtime.api.config.MuleRuntimeFeature.SET_VARIABLE_WITH_NULL_VALUE;
|
43 | 44 | import static org.mule.runtime.api.config.MuleRuntimeFeature.START_EXTENSION_COMPONENTS_WITH_ARTIFACT_CLASSLOADER;
|
44 | 45 | import static org.mule.runtime.api.config.MuleRuntimeFeature.SUPPRESS_ERRORS;
|
@@ -343,6 +344,7 @@ public class DefaultMuleContext implements MuleContextWithRegistry, PrivilegedMu
|
343 | 344 | configureComputeConnectionErrorsInStats();
|
344 | 345 | configureToStringTransformerTransformIteratorElements();
|
345 | 346 | configureEnablePolicyIsolation();
|
| 347 | + configureSeparateClassLoaderForPolicyIsolation(); |
346 | 348 | configureEntityResolverFailOnFirstErrorFeature();
|
347 | 349 | configureEnableProfilingService();
|
348 | 350 | configureSetVariableWithNullVale();
|
@@ -1305,6 +1307,17 @@ private static void configureEnablePolicyIsolation() {
|
1305 | 1307 | minMuleVersion(v4_4_0));
|
1306 | 1308 | }
|
1307 | 1309 |
|
| 1310 | + /** |
| 1311 | + * Configures the {@link MuleRuntimeFeature#SEPARATE_CLASSLOADER_FOR_POLICY_ISOLATION} feature flag. |
| 1312 | + * |
| 1313 | + * @since 4.6.0 |
| 1314 | + */ |
| 1315 | + private static void configureSeparateClassLoaderForPolicyIsolation() { |
| 1316 | + FeatureFlaggingRegistry featureFlaggingRegistry = FeatureFlaggingRegistry.getInstance(); |
| 1317 | + featureFlaggingRegistry.registerFeatureFlag(SEPARATE_CLASSLOADER_FOR_POLICY_ISOLATION, |
| 1318 | + minMuleVersion(v4_6_0)); |
| 1319 | + } |
| 1320 | + |
1308 | 1321 | /**
|
1309 | 1322 | * Configures the {@link MuleRuntimeFeature#ENTITY_RESOLVER_FAIL_ON_FIRST_ERROR} feature flag.
|
1310 | 1323 | *
|
|
0 commit comments