Interface ClassLoaderDefinition
public interface ClassLoaderDefinition
-
Method Summary
Modifier and TypeMethodDescriptionboolean
-
Method Details
-
getParent
- Returns:
- the parent classloader to use for the classloader to create.
-
getClassesFilter
- Returns:
- a filter to apply on the classes to load from the classloader to create. If the filter returns false for a class, the classloader to create will try to load it from its parent.
-
getParentClassesFilter
- Returns:
- a filter to apply on the classes to load from the parent classloader. If the filter returns false for a class, the classloader to create will try to load it by itself instead of delegating to its parent.
-
getParentResourcesFilter
- Returns:
- a filter to apply on the resources to load from the parent classloader. The
Stringargument of the predicate is the path of the resource as obtained fromURL#getFile()(i.e. the full URL/file path), not the logical resource name used inClassLoader.getResource(String). If the filter returnsfalsefor a resource, the classloader to create will try to load it by itself instead of delegating to its parent.
-
isSupportsResourceDependencies
boolean isSupportsResourceDependencies()- Returns:
- true if the classloader to create should support resource dependencies (i.e. the dependencies.txt can also list resources to load and not only classes). Note that if this is true, the classloader to create will try to load resources by itself instead of delegating to its parent.
-
getNestedPluginMappingResource
- Returns:
- the resource path to the plugins mapping file ("TALEND-INF/plugins.properties").
-