FileDocCategorySizeDatePackage
WebConfigChangeEventListener.javaAPI DocGlassfish v2 API4141Fri May 04 22:33:36 BST 2007com.sun.enterprise.admin.event

WebConfigChangeEventListener

public class WebConfigChangeEventListener extends Object implements ConfigChangeEventListener
Listener for config changes handled by web core. Web core handles changes to http-service and web-container elements of server.xml without restart. This class allows Java notification framework to determine that all such changes are handled dynamically.

Fields Summary
private static final String
ONE_OR_MORE
Useful constant to denote one or more match in a regular expression
public static final String
CATEGORY_REGEX
Regular expression for server.xml xpaths dynamically handled by web core -- /{1,}server/{1,}(http-service|web-container).*
private ConfigChangeCategory
category
Config change category handled by this listener.
Constructors Summary
Methods Summary
public voidconfigChanged(ConfigChangeEvent configChangeEvent)
Handle config changes. If init.conf or obj.conf has changed for the instance then set the status of "Restart Required".


                            
       
              
        if (configChangeEvent.isInitOrObjConfChanged()) {
            AdminEventMulticaster.notifyFailure(configChangeEvent,
                    AdminEventResult.RESTART_NEEDED);
        }
    
public ConfigChangeCategorygetConfigChangeCategory()
Get category handled by this listener. Used while registering the event listener.

        return category;