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 JKResourceLoaderThis method retrieves theJKResourceLoaderinstance.static voidsetInstance(JKResourceLoader instance) This method sets the resource loader instance to the provided one.
-
Constructor Details
-
JKResourceLoaderFactory
public JKResourceLoaderFactory()
-
-
Method Details
-
getResourceLoader
This method retrieves theJKResourceLoaderinstance.If no instance is set, a default instance of
JKDefaultResourceLoaderis 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.
-