Class JavascriptConfigDeployer
java.lang.Object
org.exoplatform.portal.resource.AbstractResourceDeployer
org.exoplatform.web.application.javascript.JavascriptConfigDeployer
- All Implemented Interfaces:
org.gatein.wci.WebAppListener
An listener for listening the ADDED and REMOVED events of the webapp to
deploy/undeploy Javascript configured in
/WEB-INF/gatein-resources.xml file.-
Field Summary
Fields inherited from class org.exoplatform.portal.resource.AbstractResourceDeployer
GATEIN_CONFIG_RESOURCE -
Constructor Summary
ConstructorsConstructorDescriptionJavascriptConfigDeployer(String portalContainerName, JavascriptConfigService javascriptService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCalled on web application add event if the application contains "/WEB-INF/gatein-resources.xml" file.protected voidremove(org.gatein.wci.WebApp webApp) Called on web application remove event if the application contains "/WEB-INF/gatein-resources.xml" file.Methods inherited from class org.exoplatform.portal.resource.AbstractResourceDeployer
getGateinResourcesXml, onEvent
-
Constructor Details
-
JavascriptConfigDeployer
public JavascriptConfigDeployer(String portalContainerName, JavascriptConfigService javascriptService)
-
-
Method Details
-
add
Description copied from class:AbstractResourceDeployerCalled on web application add event if the application contains "/WEB-INF/gatein-resources.xml" file.- Specified by:
addin classAbstractResourceDeployer- Parameters:
webApp-url-
-
remove
protected void remove(org.gatein.wci.WebApp webApp) Description copied from class:AbstractResourceDeployerCalled on web application remove event if the application contains "/WEB-INF/gatein-resources.xml" file.- Specified by:
removein classAbstractResourceDeployer- Parameters:
webApp-
-