Interface ClassLoaderDefinition


public interface ClassLoaderDefinition
  • 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 String argument of the predicate is the path of the resource as obtained from URL#getFile() (i.e. the full URL/file path), not the logical resource name used in ClassLoader.getResource(String). If the filter returns false for a resource, the classloader to create will try to load it by itself instead of delegating to its parent.
    • 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").