Class JavascriptMultiModulesResource
java.lang.Object
io.github.jeemv.springboot.vuejs.utilities.resources.JavascriptMultiModulesResource
A single Javascript file (from resources/static/js) with many modules and java variables.
JavascriptMultiModulesResource
This class is part of springBoot-VueJS
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates and returns a javascript multi modules resource.Gets a module by its namevoid
Loads a javascript file.parseContent
(String moduleName)
-
Field Details
-
moduleSequenceStart
-
moduleSequenceEnd
-
-
Constructor Details
-
JavascriptMultiModulesResource
public JavascriptMultiModulesResource()
-
-
Method Details
-
getModule
Gets a module by its name- Parameters:
moduleName
- The module name, defined by // moduleName- Returns:
-
parseContent
- Throws:
Exception
-
loadFile
Loads a javascript file.- Parameters:
filename
- The name of the js file- Throws:
IOException
-
create
Creates and returns a javascript multi modules resource.- Parameters:
filename
-- Returns:
- The javascript file to load
- Throws:
IOException
-