public class MuleClassLoaderLookupPolicy extends Object implements ClassLoaderLookupPolicy
| Constructor and Description |
|---|
MuleClassLoaderLookupPolicy(Map<String,ClassLoaderLookupStrategy> lookupStrategies,
Set<String> rootSystemPackages)
Creates a new lookup policy based on the provided configuration.
|
| Modifier and Type | Method and Description |
|---|---|
ClassLoaderLookupPolicy |
extend(Map<String,ClassLoaderLookupStrategy> lookupStrategies)
Creates a new instance extending the original poclicy configuration
|
ClassLoaderLookupStrategy |
getLookupStrategy(String className)
Returns the classloader lookup strategy to use for a given class.
|
public MuleClassLoaderLookupPolicy(Map<String,ClassLoaderLookupStrategy> lookupStrategies, Set<String> rootSystemPackages)
lookupStrategies - lookup strategy to use with specific packages. Non null.rootSystemPackages - packages that must use ClassLoaderLookupStrategy.PARENT_ONLY. Any inner package extending
from a system package root will use the same approach.public ClassLoaderLookupStrategy getLookupStrategy(String className)
ClassLoaderLookupPolicygetLookupStrategy in interface ClassLoaderLookupPolicyclassName - class to lookup.ClassLoaderLookupStrategy.CHILD_FIRST if not
explicit configuration was defined for the package.public ClassLoaderLookupPolicy extend(Map<String,ClassLoaderLookupStrategy> lookupStrategies)
ClassLoaderLookupPolicyextend in interface ClassLoaderLookupPolicylookupStrategies - lookup strategies to use with specific packages. Non null.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.