Return a String with EJB Container's module level runtime config data
435535
public String toDumpString()
    {
        // Get the New Line separator from the Java system property.
        String newLine = AccessController.doPrivileged(new SystemGetPropertyPrivileged("line.separator", "\n"));
        StringBuilder sb = new StringBuilder(toString());
        String indent = "   ";
        sb.append(newLine + newLine + "--- Dump EJBModuleMetaDataImpl fields ---");
        if (ivName != null) {
            sb.append(newLine + indent + "Module name = " + ivName);
        } else {
            sb.append(newLine + indent + "Module name = null");
        }
        // F743-25385
        if (ivLogicalName != null) {
            sb.append(newLine + indent + "Module logical name = " + ivLogicalName);
        } else {
            sb.append(newLine + indent + "Module logical name = null");
        }
        sb.append(newLine + indent + "Module version = " + ivModuleVersion);
        if (getApplicationMetaData() != null) {
            sb.append(newLine + indent + "Application metadata = " + getApplicationMetaData());
        } else {
            sb.append(newLine + indent + "Application metadata = null");
        }
        sb.append(newLine + indent + "Beans = " + ivBeanMetaDatas.keySet());
        if (ivApplicationExceptionMap != null) {
            sb.append(newLine + indent + "Application Exception map contents:");
            for (Map.Entry<String, ApplicationException> entry : ivApplicationExceptionMap.entrySet()) { // F743-14982
                ApplicationException value = entry.getValue();
                sb.append(newLine + indent + indent + "Exception: " + entry.getKey()
                          + ", rollback = " + value.rollback()
                          + ", inherited = " + value.inherited());
            }
        } else {
            sb.append(newLine + indent + "Application Exception map = null");
        }
        sb.append(newLine + indent + "SFSB failover = " + ivSfsbFailover);
        if (ivFailoverInstanceId != null) {
            sb.append(newLine + indent + "Failover instance ID = " + ivFailoverInstanceId);
        } else {
            sb.append(newLine + indent + "Failover instance ID = null");
        }
        sb.append(newLine + indent + "Fully initialized bean count = " + ivNumFullyInitializedBeans);
        sb.append(newLine + indent + "JCDIHelper = " + ivJCDIHelper);
        sb.append(newLine + indent + "UseExtendedSetRollbackOnlyBehavior = " + ivUseExtendedSetRollbackOnlyBehavior);
        sb.append(newLine + indent + "VersionedBaseName = " + ivVersionedAppBaseName + "#" + ivVersionedModuleBaseName); // F54184
        toString(sb, newLine, indent);
        sb.append(newLine + "--- End EJBModuleMetaDataImpl fields ---");
        sb.append(newLine);

        return sb.toString();

    }
344075
private OSGiInjectionScopeData getCompInjectionScopeData(ComponentNameSpaceConfiguration compNSConfig) {
        if (isManagedBean(compNSConfig)) {
            return null;
        }

        ComponentMetaData cmd = compNSConfig.getComponentMetaData();
        if (cmd == null) {
            ModuleMetaData mmd = compNSConfig.getModuleMetaData();
            if (mmd == null) {
                return null;
            }
            return getInjectionScopeData(mmd);
        }

        return getInjectionScopeData(cmd);
    }
1209262
public EJBMetaData getEJBMetaData()
                    throws RemoteException
    {
        final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); // d532639.2

        if (isTraceOn && tc.isEntryEnabled())
            Tr.entry(tc, "getEJBMetaData");

        homeEnabled();

        // We construct the meta data lazily here to avoid initialization-
        // ordering issues if we attempt to do it in initialize().

        if (ejbMetaData == null)
        {
            // p116618 - start of change
            EJSWrapper wrapper = getWrapper().getRemoteWrapper();

            if (cvUsePortableClass == false) // p125891
            {
                if (isTraceOn && tc.isDebugEnabled())
                    Tr.debug(tc, "getEJBMetaData():Creating non-portable EJBMetaDataImpl");

                ejbMetaData =
                                new com.ibm.ejs.container.EJBMetaDataImpl
                                (beanMetaData,
                                                getWrapper().getRemoteWrapper(),
                                                j2eeName); // p125891

            }
            else
            {
                if (isTraceOn && tc.isDebugEnabled()) // p125891
                    Tr.debug(tc, "getEJBMetaData():Creating portable EJBMetaDataImpl"); //p125891

                Object wrapperRef = container.getEJBRuntime().getRemoteReference(wrapper);
                EJBHome homeStub = (EJBHome) PortableRemoteObject.narrow(wrapperRef, EJBHome.class);
                Class<?> pKeyClass = null;
                if (beanMetaData.pKeyClass != null) {
                    pKeyClass = beanMetaData.pKeyClass;
                }

                int beanType = EJBMetaDataImpl.NON_SESSION_BEAN;
                if (beanMetaData.type == InternalConstants.TYPE_STATEFUL_SESSION) {
                    beanType = EJBMetaDataImpl.STATEFUL_SESSION;
                }
                else if (beanMetaData.type == InternalConstants.TYPE_STATELESS_SESSION) {
                    beanType = EJBMetaDataImpl.STATELESS_SESSION;
                }

                ejbMetaData =
                                new EJBMetaDataImpl(beanType,
                                                homeStub,
                                                beanMetaData.enterpriseBeanAbstractClass, //150685
                                                beanMetaData.homeInterfaceClass,
                                                beanMetaData.remoteInterfaceClass,
                                                pKeyClass);
            }
            // p116618 - end of change
        }

        if (isTraceOn && tc.isEntryEnabled())
            Tr.exit(tc, "getEJBMetaData", ejbMetaData);
        return ejbMetaData;
    }
1350486
private void processEJBModulePersistenceXml(JPAApplInfo applInfo, ContainerInfo module, ClassLoader appClassloader) {
        final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
        if (isTraceOn && tc.isEntryEnabled())
            Tr.entry(tc, "processEJBModulePersistenceXml : " + applInfo.getApplName() +
                         "#" + module.getName());

        String archiveName = module.getName();
        Container ejbContainer = module.getContainer();
        ClassLoader ejbClassLoader = appClassloader;

        // ------------------------------------------------------------------------
        // JPA 2.0 Specification - 8.2 Persistence Unit Packaging
        //
        // A persistence unit is defined by a persistence.xml file. The jar file or
        // directory whose META-INF directory contains the persistence.xml file is
        // termed the root of the persistence unit. In Java EE environments, the
        // root of a persistence unit may be one of the following:
        //
        // -> an EJB-JAR file
        // ------------------------------------------------------------------------

        // Obtain persistence.xml in META-INF
        Entry pxml = ejbContainer.getEntry("META-INF/persistence.xml");
        if (pxml != null) {
            String appName = applInfo.getApplName();
            URL puRoot = getPXmlRootURL(appName, archiveName, pxml);
            applInfo.addPersistenceUnits(new OSGiJPAPXml(applInfo, archiveName, JPAPuScope.EJB_Scope, puRoot, ejbClassLoader, pxml));
        }

        if (isTraceOn && tc.isEntryEnabled())
            Tr.exit(tc, "processEJBModulePersistenceXml : " + applInfo.getApplName() +
                        "#" + module.getName());
    }
1115015
def get_config():
    """"""
    # these strings are filled in when 'setup.py versioneer' creates
    # _version.py
    cfg = VersioneerConfig()
    cfg.VCS = "git"
    cfg.style = "pep440-post"
    cfg.tag_prefix = ""
    cfg.parentdir_prefix = "None"
    cfg.versionfile_source = "canmatrix/_version.py"
    cfg.verbose = False
    return cfg
962461
private String getMandatory(String name) {
		if (!config.containsKey(name)) {
			throw new RuntimeException(name + " parameter is missing.");
		}
		else {
			return config.getString(name);
		}

	}
1152650
static String getLogHeader(Map<String, String> config) {
        StringBuilder builder = new StringBuilder(512);

        String productInfo = config.get("websphere.product.info");
        if (productInfo != null) {
            builder.append("product = ").append(productInfo).append(LoggingConstants.nl);
        }

        String installDir = config.get("wlp.install.dir");
        if (installDir != null) {
            builder.append("wlp.install.dir = ").append(installDir).append(LoggingConstants.nl);
        }

        String serverConfigDir = config.get("server.config.dir");
        if (serverConfigDir != null && !"true".equals(config.get("wlp.user.dir.isDefault"))) {
            builder.append("server.config.dir = ").append(serverConfigDir).append(LoggingConstants.nl);
        }

        String serverOutputDir = config.get("server.output.dir");
        if (serverOutputDir != null && !serverOutputDir.equals(serverConfigDir)) {
            builder.append("server.output.dir = ").append(serverOutputDir).append(LoggingConstants.nl);
        }

        builder.append("java.home = ").append(System.getProperty("java.home")).append(LoggingConstants.nl);
        builder.append("java.version = ").append(System.getProperty("java.version")).append(LoggingConstants.nl);
        builder.append("java.runtime = ").append(System.getProperty("java.runtime.name")).append(" (").append(System.getProperty("java.runtime.version")).append(')').append(LoggingConstants.nl);

        builder.append("os = ").append(System.getProperty("os.name")).append(" (").append(System.getProperty("os.version")).append("; ").append(System.getProperty("os.arch")).append(") (").append(Locale.getDefault()).append(")").append(LoggingConstants.nl);

        // avoid the initialization overhead retrieving the RuntimeMXBean. Not guaranteed to work on all platforms, so fallback as appropriate
        builder.append("process = ");
        String pid = System.getProperty("sun.java.launcher.pid");

        if (pid != null) {
            try {
                String ip = InetAddress.getLocalHost().getHostAddress();
                builder.append(pid).append('@').append(ip);
            } catch (Exception e) {
                pid = null;
            }
        }
        if (pid == null) {
            builder.append(ManagementFactory.getRuntimeMXBean().getName());
        }
        builder.append(LoggingConstants.nl);

        return builder.toString();
    }
683980
public void generateConfig(File configFile, ContainerRoot model) throws IOException {
        StringBuilder buffer = new StringBuilder();
        buffer.append(OSHelper.read(this.getClass().getClassLoader().getResourceAsStream("base.cfg")));
        buffer.append("\n");
        HashMap<String, Backend> backends = new HashMap<String, Backend>();
        for (ContainerNode node : model.getNodes()) {
            for (ComponentInstance instance : node.getComponents()) {
                if (instance.getTypeDefinition().getDictionaryType() != null
                        && instance.getTypeDefinition().getDictionaryType().findAttributesByID("http_port") != null
                        && instance.getStarted()
                        && !instance.getName().equals(context.getInstanceName())) {

                    if (!backends.containsKey(instance.getTypeDefinition().getName())) {
                        Backend backend = new Backend();
                        backends.put(instance.getTypeDefinition().getName(), backend);
                    }
                    Backend backend = backends.get(instance.getTypeDefinition().getName());
                    backend.setName(instance.getTypeDefinition().getName());
                    Server s = new Server();
                    s.setIp("127.0.0.1");
                    s.setName(instance.getName());
                    s.setPort(instance.getDictionary().findValuesByID("http_port").getValue());
                    backend.getServers().add(s);
                }
            }
        }

        if (backends.size() > 0) {
            buffer.append("default_backend ");
            String firstKey = backends.keySet().iterator().next();
            buffer.append(backends.get(firstKey).getName());
            buffer.append("\n");
        }
        for (String key : backends.keySet()) {
            buffer.append("\n");
            buffer.append(backends.get(key));
            buffer.append("\n");
        }
        FileWriter writer = new FileWriter(configFile);
        writer.write(buffer.toString());
        writer.close();
    }
38950
function getServerConfigString(config) {
    let browserConfig = {};
    let whitelist = (config.appConfig.toBrowser || {});

    whitelist.modules = true;
    whitelist.templateMode = true;
    whitelist.lazyTemplateLoad = true;

    for (let key in whitelist) {
        browserConfig[key] = config.appConfig[key];
    }

    return JSON.stringify(browserConfig);
}
829777
def get_config_path():
    """"""
    dir_path = (os.getenv('APPDATA') if os.name == "nt"
                else os.path.expanduser('~'))
    return os.path.join(dir_path, '.vtjp')
604769
public static String getDataName(String moduleName, int dataId) {
        PmiModuleConfig config = PerfModules.getConfig(moduleName);
        if (config == null)
            return null;

        PmiDataInfo info = config.getDataInfo(dataId);
        if (info == null)
            return null;
        else
            return info.getName();
    }
886868
function getConfig(name, def) {

        var i, j;

        // Load initital config.
        if (!config) {

            var external;

            config = grunt.config.get('cog') || {options: {}};

            // Expand general external definitions to category specific definitions.
            if (config.options.external instanceof Array) {
                external = config.options.external;
                config.options.external = {lib: [], css: [], fonts: []};
                for (i=0; i < external.length; i++) {
                    if (!db.categories[external[i]]) {
                        grunt.fail.fatal("Cannot figure out applicaple categories for external dependency: " + external[i]);
                    }
                    for(j = 0; j < db.categories[external[i]].length; j++) {
                        config.options.external[db.categories[external[i]][j]].push(external[i]);
                    }
                }
            }

            // Expand also for unit tests.
            if (config.options.test && config.options.test.unit && config.options.test.unit.external instanceof Array) {
                external = config.options.test.unit.external;
                config.options.test.unit.lib = [];
                config.options.test.unit.css = [];
                for (i=0; i < external.length; i++) {
                    if (!db.categories[external[i]]) {
                        grunt.fail.fatal("Cannot figure out applicaple categories for external dependency: " + external[i]);
                        continue;
                    }
                    for(j = 0; j < db.categories[external[i]].length; j++) {
                        config.options.test.unit[db.categories[external[i]][j]].push(external[i]);
                    }
                }
            }
        }

        var ret = config.options;

        if (!name) {
            return ret;
        }

        var parts = name.split('.');
        for (i=0; i < parts.length; i++) {
            if (!ret) {
                return def;
            }
            ret = ret[parts[i]];
        }

        return ret || def;
    }
675577
def getString(self, config, relation=0):
        
        return String(config, self.base).xform(self, relation)
1292733
public String getJ2EEName(DeployedModule webModuleConfig)
    {
        WebAppConfiguration webAppConfiguration = webModuleConfig.getWebAppConfig();
        WebModuleMetaData webModuleMetaData = webAppConfiguration.getMetaData();
        J2EEName j2eeName = webModuleMetaData.getJ2EEName();
        if(j2eeName==null) {
            String appName = webAppConfiguration.getApplicationName();
            String moduleName = webAppConfiguration.getModuleName();            
            return appName+"#"+moduleName;
        }
        return j2eeName.toString();
    }
75941
def _get_config():
    '''
    
    '''
    cfg = os.path.expanduser('~/.dockercfg')
    try:
        fic = open(cfg)
        try:
            config = json.loads(fic.read())
        finally:
            fic.close()
    except Exception:
        config = {'rootPath': '/dev/null'}
    if not 'Configs' in config:
        config['Configs'] = {}
    return config
368925
protected final ModuleConfig getModuleConfig()
    {
        if ( _moduleConfig == null )
        {
            _moduleConfig = InternalUtils.ensureModuleConfig(getModulePath(), getServletContext());
            assert _moduleConfig != null : getModulePath() + "; " + getClass().getName();
        }
        return _moduleConfig;
    }
457391
def get_config():
    
    app_module = os.getenv('APP_MODULE')
    if not app_module:
        err = 'Unable to bootstrap application APP_MODULE is not defined'
        raise x.BootstrapException(err)

    app_config = os.getenv('APP_CONFIG')
    if not app_module:
        err = 'Unable to bootstrap application APP_CONFIG is not defined'
        raise x.BootstrapException(err)

    try:
        config_class = import_string(app_config)
    except ImportError:
        err = 'Failed imported config file [{}]'
        raise x.BootstrapException(err.format(app_config))

    # and return
    config = config_class()
    return config