Package com.jk.core.resources
Class JKResourceLoaderFactory
java.lang.Object
com.jk.core.resources.JKResourceLoaderFactory
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JKResourceLoader
This method retrieves theJKResourceLoader
instance.static void
setInstance
(JKResourceLoader instance) This method sets the resource loader instance to the provided one.
-
Constructor Details
-
JKResourceLoaderFactory
public JKResourceLoaderFactory()
-
-
Method Details
-
getResourceLoader
This method retrieves theJKResourceLoader
instance.If no instance is set, a default instance of
JKDefaultResourceLoader
is created and returned.- Returns:
- the resource loader
-
setInstance
This method sets the resource loader instance to the provided one.- Parameters:
instance
- Specifies the new instance.
-