Class LocalLoaders


  • public final class LocalLoaders
    extends java.lang.Object
    Static factory methods for various types of local loaders.
    Author:
    David M. Lloyd
    • Method Detail

      • createPathFilteredLocalLoader

        public static LocalLoader createPathFilteredLocalLoader​(PathFilter pathFilter,
                                                                LocalLoader originalLoader)
        Create a filtered local loader.
        Parameters:
        pathFilter - the path filter to apply to resources
        originalLoader - the original loader
        Returns:
        the filtered loader
      • createIterablePathFilteredLocalLoader

        public static IterableLocalLoader createIterablePathFilteredLocalLoader​(PathFilter pathFilter,
                                                                                IterableLocalLoader originalLoader)
        Create a filtered local loader.
        Parameters:
        pathFilter - the path filter to apply to resources
        originalLoader - the original loader
        Returns:
        the filtered loader
      • createClassFilteredLocalLoader

        public static LocalLoader createClassFilteredLocalLoader​(ClassFilter classFilter,
                                                                 LocalLoader originalLoader)
        Create a filtered local loader.
        Parameters:
        classFilter - the class filter to apply to classes
        originalLoader - the original loader
        Returns:
        the filtered loader
      • createIterableClassFilteredLocalLoader

        public static IterableLocalLoader createIterableClassFilteredLocalLoader​(ClassFilter classFilter,
                                                                                 IterableLocalLoader originalLoader)
        Create a filtered local loader.
        Parameters:
        classFilter - the class filter to apply to classes
        originalLoader - the original loader
        Returns:
        the filtered loader
      • createFilteredLocalLoader

        public static LocalLoader createFilteredLocalLoader​(ClassFilter classFilter,
                                                            PathFilter resourcePathFilter,
                                                            LocalLoader originalLoader)
        Create a filtered local loader.
        Parameters:
        classFilter - the class filter to apply to classes
        resourcePathFilter - the path filter to apply to resources
        originalLoader - the original loader
        Returns:
        the filtered loader
      • createIterableFilteredLocalLoader

        public static IterableLocalLoader createIterableFilteredLocalLoader​(ClassFilter classFilter,
                                                                            PathFilter resourcePathFilter,
                                                                            IterableLocalLoader originalLoader)
        Create a filtered local loader.
        Parameters:
        classFilter - the class filter to apply to classes
        resourcePathFilter - the path filter to apply to resources
        originalLoader - the original loader
        Returns:
        the filtered loader