public class JavascriptConfigService extends AbstractResourceService implements org.picocontainer.Startable
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
JS_ID_PATTERN |
static Comparator<Module> |
MODULE_COMPARATOR
.
|
static List<String> |
RESERVED_MODULE
.
|
compressor, contexts, mainResolver| Constructor and Description |
|---|
JavascriptConfigService(org.exoplatform.container.ExoContainerContext context,
ResourceCompressor compressor) |
| Modifier and Type | Method and Description |
|---|---|
String |
generateURL(ControllerContext controllerContext,
ResourceId id,
boolean merge,
boolean minified,
Locale locale) |
org.json.JSONObject |
getJSConfig(ControllerContext controllerContext,
Locale locale) |
ScriptResource |
getResource(ResourceId resource) |
Reader |
getScript(ResourceId resourceId,
Locale locale) |
Map<ScriptResource,FetchMode> |
resolveIds(Map<ResourceId,FetchMode> ids) |
void |
start()
Start service.
|
void |
stop()
Stop service.
|
addResourceResolver, registerContext, unregisterServletContextpublic static final Pattern JS_ID_PATTERN
public static final Comparator<Module> MODULE_COMPARATOR
public JavascriptConfigService(org.exoplatform.container.ExoContainerContext context,
ResourceCompressor compressor)
public Reader getScript(ResourceId resourceId, Locale locale) throws Exception
Exceptionpublic String generateURL(ControllerContext controllerContext, ResourceId id, boolean merge, boolean minified, Locale locale) throws IOException
IOExceptionpublic Map<ScriptResource,FetchMode> resolveIds(Map<ResourceId,FetchMode> ids)
public org.json.JSONObject getJSConfig(ControllerContext controllerContext, Locale locale) throws Exception
Exceptionpublic ScriptResource getResource(ResourceId resource)
public void start()
start in interface org.picocontainer.StartableStartable.start()public void stop()
stop in interface org.picocontainer.StartableStartable.stop()Copyright © 2018 JBoss by Red Hat. All Rights Reserved.