Class JavascriptConfigService
java.lang.Object
org.exoplatform.portal.resource.AbstractResourceService
org.exoplatform.web.application.javascript.JavascriptConfigService
- All Implemented Interfaces:
org.picocontainer.Startable
public class JavascriptConfigService
extends AbstractResourceService
implements org.picocontainer.Startable
-
Field Summary
FieldsFields inherited from class org.exoplatform.portal.resource.AbstractResourceService
compressor, contexts, mainResolver -
Constructor Summary
ConstructorsConstructorDescriptionJavascriptConfigService(org.exoplatform.container.ExoContainerContext context, ResourceCompressor compressor) -
Method Summary
Modifier and TypeMethodDescriptiongenerateURL(org.exoplatform.web.ControllerContext controllerContext, ResourceId id, boolean merge, boolean minified, Locale locale) org.exoplatform.commons.utils.CompositeReadergetCompositeScript(ResourceId resourceId, Locale locale) org.json.JSONObjectgetJSConfig(org.exoplatform.web.ControllerContext controllerContext, Locale locale) getResource(ResourceId resource) getScript(ResourceId resourceId, Locale locale) voidreloadJavascript(String jsModule) voidresolveIds(Map<ResourceId, FetchMode> ids) voidstart()Start service.voidstop()Stop service.Methods inherited from class org.exoplatform.portal.resource.AbstractResourceService
addResourceResolver, registerContext, unregisterServletContext
-
Field Details
-
RESERVED_MODULE
. -
JS_ID_PATTERN
-
scriptURLs
-
MODULE_COMPARATOR
.
-
-
Constructor Details
-
JavascriptConfigService
public JavascriptConfigService(org.exoplatform.container.ExoContainerContext context, ResourceCompressor compressor)
-
-
Method Details
-
getScript
- Throws:
Exception
-
getCompositeScript
public org.exoplatform.commons.utils.CompositeReader getCompositeScript(ResourceId resourceId, Locale locale) throws Exception - Throws:
Exception
-
generateURL
public String generateURL(org.exoplatform.web.ControllerContext controllerContext, ResourceId id, boolean merge, boolean minified, Locale locale) throws IOException - Throws:
IOException
-
resolveIds
-
getJSConfig
public org.json.JSONObject getJSConfig(org.exoplatform.web.ControllerContext controllerContext, Locale locale) throws Exception - Throws:
Exception
-
getResource
-
start
public void start()Start service. Registry org.exoplatform.web.application.javascript.JavascriptDeployer, org.exoplatform.web.application.javascript.JavascriptRemoval into ServletContainer- Specified by:
startin interfaceorg.picocontainer.Startable- See Also:
-
getJavascriptKeys
-
reloadJavascripts
public void reloadJavascripts() -
reloadJavascript
-
stop
public void stop()Stop service. Remove org.exoplatform.web.application.javascript.JavascriptDeployer, org.exoplatform.web.application.javascript.JavascriptRemoval from ServletContainer- Specified by:
stopin interfaceorg.picocontainer.Startable- See Also:
-