this.portalContainerName = portalContainerName;
}
public void onEvent(WebAppEvent event) {
if (event instanceof WebAppLifeCycleEvent) {
WebAppLifeCycleEvent lifeCycleEvent = (WebAppLifeCycleEvent) event;
ServletContext servletContext = lifeCycleEvent.getWebApp().getServletContext();
switch (lifeCycleEvent.getType()) {
case WebAppLifeCycleEvent.ADDED:
add(event.getWebApp());
break;
case WebAppLifeCycleEvent.REMOVED:
remove(event.getWebApp());