Class JKResourceLoaderFactory

java.lang.Object
com.jk.core.resources.JKResourceLoaderFactory

public class JKResourceLoaderFactory extends Object
This class represents a factory used for creating JKResourceLoader objects.

This class provides a way to obtain an instance of JKResourceLoader, allowing customization of the resource loading behavior by providing an alternative instance.

Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • JKResourceLoaderFactory

      public JKResourceLoaderFactory()
  • Method Details

    • getResourceLoader

      public static JKResourceLoader getResourceLoader()
      This method retrieves the JKResourceLoader instance.

      If no instance is set, a default instance of JKDefaultResourceLoader is created and returned.

      Returns:
      the resource loader
    • setInstance

      public static void setInstance(JKResourceLoader instance)
      This method sets the resource loader instance to the provided one.
      Parameters:
      instance - Specifies the new instance.