Package com.sun.enterprise.config

Examples of com.sun.enterprise.config.ConfigDelete


     * @throws com.sun.enterprise.admin.event.AdminEventListenerException
     */
    public void handleDelete(ClusterChangeEvent clusterChangeEvent)
            throws AdminEventListenerException {
        List changeList = clusterChangeEvent.getConfigChangeList();
        ConfigDelete configDelete = (ConfigDelete) changeList.get(0);
        String xpath = configDelete.getXPath();
        String instanceName = getInstanceNameFromXPath(xpath);
        handler.onDelete(clusterName, instanceName);
    }
View Full Code Here


        if (applicationName != null) {
            ConfigBean app =
                ApplicationHelper.findApplication(_ctx,applicationName);
            String xpath = app.getXPath();
            ConfigDelete configDelete =
                ConfigChangeFactory.createConfigDelete(xpath);
            list.add(configDelete);
        }
        return list;
    }
View Full Code Here

        List list = new ArrayList();
        if (res == null) {
            return list;
        }
        String xpath = res.getXPath();
        ConfigDelete configDelete=ConfigChangeFactory.createConfigDelete(xpath);
        list.add(configDelete);
        return list;
    }
View Full Code Here

      ConfigContext configContext = event.getConfigContext();
            ConfigContext adminConfigCtx =
                 AdminService.getAdminService().
                 getAdminContext().getAdminConfigContext();
            Config config = ServerBeansFactory.getConfigBean(adminConfigCtx);
            ConfigDelete configDel = null;
            ArrayList<ConfigDelete> configChangeList = event.getConfigChangeList();
            ManagementRule rule = null;
            String xpath = null;
            Object object;

            for (int i=0; i < configChangeList.size(); i++){
                configDel = configChangeList.get(i);

                xpath = configDel.getXPath();
                if (xpath != null){
                    _logger.log(Level.INFO, "sgmt.reconfig_handledelxpath",xpath);
        object = oldConfigContext.exactLookup(xpath);
                    if (object instanceof Action) {
                        //handle action removal - noaction
View Full Code Here

                        if(ConfigBeansFactory.getConfigBeanByXPath(configContext, change.getXPath())!=null)
                        {
                            try
                            {
                                // we delete existing bean to get fresh copy (it is esp. significant for deployedModules)
                                ConfigDelete delete_prior = ConfigChangeFactory.createConfigDelete(change.getXPath());
                                configContext.updateFromConfigChange(delete_prior);
                            } catch(Exception e) {
                                logger.log(Level.WARNING, "event.delete_prior_ctx_failed", e);
                            }
                        }
View Full Code Here

                              
                               if (ev.getChoice().equals("ADD")) {
                                   ConfigAdd cfgAdd = ConfigChangeFactory.createConfigAdd(ctx, xpath);
                                   cfgList.add(cfgAdd);
                               } else if (ev.getChoice().equals("DELETE")) {
                                   ConfigDelete cfgDelete = ConfigChangeFactory.createConfigDelete(xpath);
                                   cfgList.add(cfgDelete);
                               }
                               elementHelper = new ElementChangeHelper();
                               elementChangeEvents = elementHelper.generateElementChangeEventsFromChangeList(clusterName, cfgList, ctx);
                               for(AdminEvent elementChangeEvent : elementChangeEvents) {
View Full Code Here

TOP

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

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.