Examples of exactLookup()


Examples of com.sun.enterprise.config.ConfigContext.exactLookup()

                    //handle action addition
        pXPath = configChange.getParentXPath();
        String name = configChange.getName();
        if (name.equals(ManagementRule.ACTION)) {
            _logger.log(Level.INFO,"smgt.handleactionadd",pXPath);
            rule = (ManagementRule)configContext.exactLookup(pXPath);
            service.handleActionAdd(rule, configContext);
                    }
    }
            }
        } catch (Exception ex) {
View Full Code Here

Examples of com.sun.enterprise.config.ConfigContext.exactLookup()

                    _logger.log(Level.INFO, "sgmt.reconfig_handledelxpath",xpath);
        object = oldConfigContext.exactLookup(xpath);
                    if (object instanceof Action) {
                        //handle action removal - noaction
                        String realXPath = xpath.substring(0,xpath.lastIndexOf("/"));
                        rule = (ManagementRule) adminConfigCtx.exactLookup(realXPath);
                        String ruleName = rule.getName();
                        service.deleteAction(ruleName);
                    } else if (object instanceof ManagementRule) {
                        rule = (ManagementRule)object;
                        String ruleName = rule.getName();
View Full Code Here

Examples of com.sun.enterprise.config.ConfigContext.exactLookup()

                        rule = (ManagementRule)object;
                        String ruleName = rule.getName();
                        service.deleteRule(ruleName);
                    } else {
                        String realXPath = xpath.substring(0,xpath.lastIndexOf("/"));
                        rule = (ManagementRule) adminConfigCtx.exactLookup(realXPath);
                        String ruleName = rule.getName();
                        service.deleteAction(ruleName);
        }
                }
            }
View Full Code Here

Examples of com.sun.enterprise.config.ConfigContext.exactLookup()

            while (iter.hasNext()) {
                Map.Entry entry = (Map.Entry)iter.next();
                String xpath = (String)entry.getValue();
                ConfigBean bean = null;
                try {
                    bean = ctx.exactLookup(xpath);
                } catch (ConfigException ce) {
                    // Ignore config exception, as it is not relevant for the
                    // purpose of finding the ref type.
                }
                if (bean != null) {
View Full Code Here

Examples of com.sun.enterprise.config.ConfigContext.exactLookup()

        final ArrayList<ConfigAdd> list     = event.getConfigChangeList(); // I know that they are ConfigAdd's
        final ConfigContext rcc             = event.getConfigContext();
        for (final ConfigAdd added : list)  {
            final String xp = added.getXPath();
            if (xp != null) {
                final Object co = rcc.exactLookup(xp);
                if (co instanceof Mbean) {
                    final Mbean     am = (Mbean)co;
                    final String   icn = am.getImplClassName();
                    synchronizeClass(icn, rcc);
                }
View Full Code Here

Examples of com.sun.enterprise.config.ConfigContext.exactLookup()

                if ( configObject instanceof ConfigAdd) {
                    configAdd = (ConfigAdd)configObject;
                    xpath = configAdd.getXPath();
                    if( xpath != null){
                        object = configContext.exactLookup(xpath);
                        if ( object instanceof HttpListener){
                            httpBean = (HttpListener)object;
                            webContainer.createConnector(httpBean,
                                                         config.getHttpService());
                        }
View Full Code Here

Examples of com.sun.enterprise.config.ConfigContext.exactLookup()

            for (int i=0; i < configChangeList.size(); i++){
                configChange = configChangeList.get(i);
                xpath = configChange.getXPath();
                if (xpath != null) {
                    object = configContext.exactLookup(xpath);
                    if (object != null) {
                        if (object instanceof HttpListener) {
                           
                            if ( ((HttpListener)object).getDefaultVirtualServer()
                                    .equals(com.sun.enterprise.web.VirtualServer.ADMIN_VS)){
View Full Code Here

Examples of com.sun.enterprise.config.ConfigContext.exactLookup()

                            if (parentXpath == null) {
                                parentXpath =
                                    xpath.substring(0, xpath.lastIndexOf("/"));
                            }
                            httpBean = (HttpListener)
                                configContext.exactLookup(parentXpath);
                            webContainer.updateConnector(
                                httpBean,
                                config.getHttpService(),
                                configContext);
                        }
View Full Code Here

Examples of com.sun.enterprise.config.ConfigContext.exactLookup()

                    } else {
                        // Property has been deleted
                        parentXpath =
                            xpath.substring(0, xpath.lastIndexOf("/"));
                        httpBean = (HttpListener)
                            configContext.exactLookup(parentXpath);
                        webContainer.updateConnector(
                            httpBean,
                            config.getHttpService(),
                            configContext);
                    }
View Full Code Here

Examples of com.sun.enterprise.config.ConfigContext.exactLookup()

                if ( configObject instanceof ConfigAdd) {
                    configAdd = (ConfigAdd)configObject;
                    xpath = configAdd.getXPath();
                    if( xpath != null){
                        object = configContext.exactLookup(xpath);

                        if ( object instanceof VirtualServer){
                            vsBean = (VirtualServer)object;
                            webContainer.createHost(vsBean,configContext,true);
                        } else if (object instanceof ElementProperty) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.