Package com.sun.enterprise.config

Examples of com.sun.enterprise.config.ConfigContextEvent


            count++; // Number of test to be printed
        }
    }
   
    public void check(ConfigBean configBean) {
        ConfigContextEvent cce = new ConfigContextEvent(getConfigContext(), ConfigContextEvent.PRE_ADD_CHANGE,configBean.toString(),configBean,"VALIDATE");
        cce.setClassObject(configBean.parent());
        Result result = domainMgr.check(cce);
        if(result != null)
            output(result);
    }
View Full Code Here


                        ("Command Failed. Invalid ConfigContext because of concurrent Access. Please rerun the command");
            }
           
            // <addition> srini@sun.com server.xml verifier
            //preChange(ConfigContextEvent.PRE_FLUSH_CHANGE);
            ConfigContextEvent ccce = new ConfigContextEvent(this,ConfigContextEvent.PRE_FLUSH_CHANGE);
            preChange(ccce);
            // </addition> server.xml verifier
        
            try {
                FileOutputStream fos = new FileOutputStream(this.xmlUrl);
                server.write(fos);
            } catch(Exception e) {
                throw new ConfigException("Error Flushing ConfigContext " + toString());
            }
            initLastModified();
            // <addition> srini@sun.com
            //postChange(ConfigContextEvent.POST_FLUSH_CHANGE);
            ccce = new ConfigContextEvent(this,ConfigContextEvent.POST_FLUSH_CHANGE);
            postChange(ccce);
            // </addition> server.xml verifier
           
            //FIXME: should I not write out persistentConfigChanges now??
        }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.ConfigContextEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.