Package com.sun.enterprise.config.serverbeans

Examples of com.sun.enterprise.config.serverbeans.ElementProperty


        WebModuleVisitor wv = (WebModuleVisitor) v;
        wv.visit(this);
    }
   
    private boolean isConverged() {
        ElementProperty prop = null;
        String converged = null;
       
        if (_extMod != null) {
            prop = _extMod.getElementPropertyByName(IS_CONVERGED);
            if (prop != null)
                converged = prop.getValue();
        }
       
        return Boolean.parseBoolean(converged);
    }
View Full Code Here


        if (wm != null) {
            if (wm instanceof WebModule) {
                _wm = (WebModule) wm;
            } else if (wm instanceof J2eeApplication) {
                J2eeApplication jm = (J2eeApplication) wm;
                ElementProperty prop = null;
                String converged = null;
                prop = jm.getElementPropertyByName(IS_CONVERGED);
                if (prop != null)
                    converged = prop.getValue();
                isConverged = Boolean.valueOf(converged);
            }
            else {
                String msg = _strMgr.getString("UnknownTypeInWebModuleReader");
                throw new RuntimeException(msg);
View Full Code Here

        ArrayList list = new ArrayList();
        Enumeration keys = props.keys();
        while (keys.hasMoreElements())
        {
            final String key = (String)keys.nextElement();
            ElementProperty property = new ElementProperty();
            property.setName(key);
            property.setValue((String)props.get(key));
            list.add(property);
        }
        return (ElementProperty[])list.toArray(new ElementProperty[list.size()]);
    }
View Full Code Here

    private static void addClientHostNameProperty2SystemJmxConnector(final Config someConfig) throws ConfigException {
        final com.sun.enterprise.config.serverbeans.AdminService as = someConfig.getAdminService();
        final JmxConnector jc    = as.getJmxConnectorByName(IAdminConstants.SYSTEM_CONNECTOR_NAME);
        final String hostValue   = System.getProperty(SystemPropertyConstants.HOST_NAME_PROPERTY);
        final String hostName    = IAdminConstants.HOST_PROPERTY_NAME;
        ElementProperty ep       = jc.getElementPropertyByName(hostName);

        if (ep == null) {
            ep = new ElementProperty();
            ep.setName(hostName);
            ep.setValue(hostValue);
            jc.addElementProperty(ep);
        } else {
            ep.setValue(hostValue);
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.serverbeans.ElementProperty

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.