1 23 24 31 package com.sun.enterprise.admin.event; 32 33 import com.sun.enterprise.config.serverbeans.ServerTags; 34 import com.sun.enterprise.config.serverbeans.ServerXPathHelper; 35 36 42 public class WebConfigChangeEventListener implements ConfigChangeEventListener { 43 44 47 private static final String ONE_OR_MORE = ServerXPathHelper.REGEX_ONE_PLUS; 48 49 53 public static final String CATEGORY_REGEX = 54 ServerXPathHelper.REGEX_XPATH_CONFIG 55 + ServerXPathHelper.XPATH_SEPARATOR + ONE_OR_MORE 56 + "(" + ServerTags.HTTP_SERVICE + "|" + ServerTags.WEB_CONTAINER 57 + ").*"; 58 59 62 private ConfigChangeCategory category = new ConfigChangeCategory("webcore", 63 CATEGORY_REGEX); 64 65 69 public void configChanged(ConfigChangeEvent configChangeEvent) 70 throws AdminEventListenerException { 71 if (configChangeEvent.isInitOrObjConfChanged()) { 72 AdminEventMulticaster.notifyFailure(configChangeEvent, 73 AdminEventResult.RESTART_NEEDED); 74 } 75 } 76 77 81 public ConfigChangeCategory getConfigChangeCategory() { 82 return category; 83 } 84 } 85 | Popular Tags |