
public.javadoc.org.spincast.plugins.jsclosurecompiler.SpincastJsClosureCompilerPebbleExtensionDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastJsClosureCompilerPebbleExtensionDefault (org.spincast:spincast-framework 2.1.1 API)
Class SpincastJsClosureCompilerPebbleExtensionDefault
java.lang.Object
com.mitchellbosecke.pebble.extension.AbstractExtension
org.spincast.plugins.jsclosurecompiler.SpincastJsClosureCompilerPebbleExtensionDefault
- All Implemented Interfaces:
com.mitchellbosecke.pebble.extension.Extension
, SpincastJsClosureCompilerPebbleExtension
public class SpincastJsClosureCompilerPebbleExtensionDefault
extends com.mitchellbosecke.pebble.extension.AbstractExtension
implements SpincastJsClosureCompilerPebbleExtension
Pebble extension
-
Field Summary
Fields
-
Constructor Summary
Constructors
Constructor
Description
SpincastJsClosureCompilerPebbleExtensionDefault(SpincastJsClosureCompilerConfig spincastJsClosureCompilerConfig,
SpincastConfig spincastConfig,
SpincastUtils spincastUtils,
Router<?,?> router,
Server server,
HttpClient httpClient,
SpincastJsClosureCompilerManager spincastJsClosureCompilerManager)
-
Method Summary
Modifier and Type
Method
Description
protected boolean
bundleJs(File bundleFile,
List<String> jsFilesUrlRelativePaths,
String urlPath,
List<String> cmdArgs)
protected Object
bundlingDisabledOutput(List<String> jsFilesUrlRelativePaths)
protected Object
bundlingOutput(String path)
protected String
generateJsBundleName(List<String> jsFilesUrlRelativePaths)
protected String
generateJsBundleUrlPath(String hash,
boolean withCacheBuster)
protected String
getExistingBundleFileHash(File bundleFile)
Return the hash used to create the existing
bundle oir null
if the bundle doesn't
exist.
protected HttpClient
protected File
getJsBundleFile(String hash)
protected Router<?,?>
protected Server
protected SpincastConfig
protected SpincastJsClosureCompilerConfig
protected SpincastJsClosureCompilerManager
protected SpincastUtils
Methods inherited from class com.mitchellbosecke.pebble.extension.AbstractExtension
getAttributeResolver, getBinaryOperators, getFilters, getGlobalVariables, getNodeVisitors, getTests, getTokenParsers, getUnaryOperators
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mitchellbosecke.pebble.extension.Extension
getAttributeResolver, getBinaryOperators, getFilters, getGlobalVariables, getNodeVisitors, getTests, getTokenParsers, getUnaryOperators
-
Field Details
-
logger
protected static final org.slf4j.Logger logger
-
JS_BUNDLE_FUNCTION_ARG_DISABLE_CACHE_BUSTING
- See Also:
-
-
HASH_LINE_START
- See Also:
-
-
HASH_LINE_END
- See Also:
-
-
Constructor Details
-
SpincastJsClosureCompilerPebbleExtensionDefault
@Inject
public SpincastJsClosureCompilerPebbleExtensionDefault(SpincastJsClosureCompilerConfig spincastJsClosureCompilerConfig,
SpincastConfig spincastConfig,
SpincastUtils spincastUtils,
Router<?,?> router,
Server server,
HttpClient httpClient,
SpincastJsClosureCompilerManager spincastJsClosureCompilerManager)
-
Method Details
-
getSpincastJsClosureCompilerConfig
-
getSpincastConfig
-
getSpincastUtils
-
getRouter
-
getServer
-
getHttpClient
-
getSpincastJsClosureCompilerManager
-
getFunctions
- Specified by:
getFunctions
in interface com.mitchellbosecke.pebble.extension.Extension
- Overrides:
getFunctions
in class com.mitchellbosecke.pebble.extension.AbstractExtension
-
bundlingDisabledOutput
-
bundlingOutput
-
bundleJs
-
getExistingBundleFileHash
Return the hash used to create the existing
bundle oir null
if the bundle doesn't
exist.
-
generateJsBundleName
-
getJsBundleFile
-
generateJsBundleUrlPath
© 2015 - 2025 Weber Informatics LLC | Privacy Policy