/** * Creates a default configuration setup, which loads its settings from * the static configuration (defaults provided by the developers of the * library) and the user configuration (settings provided by the deployer). * The deployer's settings override the developer's settings. * * If the parameter <code>addSysProps</code> is set to true, the system * properties will be added as third configuration layer. The system * properties configuration allows to override all other settings. * * @param staticConfig the resource name of the developers configuration * @param userConfig the resource name of the deployers configuration * @param addSysProps a flag defining whether to include the system * properties into the configuration. * @return the configured Configuration instance. */ protected Configuration createDefaultHierarchicalConfiguration (final String staticConfig, final String userConfig, final boolean addSysProps) { return createDefaultHierarchicalConfiguration (staticConfig, userConfig, addSysProps, PropertyFileConfiguration.class); }
/** * Returns the global configuration as modifiable configuration reference. * * @return the global configuration */ public static ModifiableConfiguration getConfiguration() { return (ModifiableConfiguration) getInstance().getGlobalConfig(); }
/** * Returns the global configuration. * * @return The global configuration. */ public synchronized Configuration getGlobalConfig() { if (this.globalConfig == null) { this.globalConfig = loadConfiguration(); } return this.globalConfig; }
if (isBootDone()) { return; while (isBootInProgress()) { try { wait(); if (isBootDone()) { return; final BootableProjectInfo info = getProjectInfo(); if (info != null) { final BootableProjectInfo[] childs = info.getDependencies(); for (int i = 0; i < childs.length; i++) { final AbstractBoot boot = loadBooter(childs[i].getBootClass()); if (boot != null) { boot.start(); while (boot.isBootDone() == false) { try { boot.wait(); performBoot(); if (info != null)
globalConfig.insertConfiguration(rootProperty); globalConfig.insertConfiguration( getPackageManager().getPackageConfiguration());
if (isBootDone()) { return; while (isBootInProgress()) { try { wait(); if (isBootDone()) { return; final BootableProjectInfo info = getProjectInfo(); if (info != null) { final BootableProjectInfo[] childs = info.getDependencies(); for (int i = 0; i < childs.length; i++) { final AbstractBoot boot = loadBooter(childs[i].getBootClass()); if (boot != null) { boot.start(); while (boot.isBootDone() == false) { try { boot.wait(); performBoot(); if (info != null)
globalConfig.insertConfiguration(rootProperty); globalConfig.insertConfiguration( getPackageManager().getPackageConfiguration());
if (isBootDone()) { return; while (isBootInProgress()) { try { wait(); if (isBootDone()) { return; final BootableProjectInfo info = getProjectInfo(); if (info != null) { final BootableProjectInfo[] childs = info.getDependencies(); for (int i = 0; i < childs.length; i++) { final AbstractBoot boot = loadBooter(childs[i].getBootClass()); if (boot != null) { boot.start(); while (boot.isBootDone() == false) { try { boot.wait(); performBoot(); if (info != null)
/** * Returns the global configuration as modifiable configuration reference. * * @return the global configuration */ public static ModifiableConfiguration getConfiguration() { return (ModifiableConfiguration) getInstance().getGlobalConfig(); }
/** * Returns the global configuration. * * @return The global configuration. */ public synchronized Configuration getGlobalConfig() { if (this.globalConfig == null) { this.globalConfig = loadConfiguration(); } return this.globalConfig; }
/** * Creates a default configuration setup, which loads its settings from * the static configuration (defaults provided by the developers of the * library) and the user configuration (settings provided by the deployer). * The deployer's settings override the developer's settings. * * If the parameter <code>addSysProps</code> is set to true, the system * properties will be added as third configuration layer. The system * properties configuration allows to override all other settings. * * @param staticConfig the resource name of the developers configuration * @param userConfig the resource name of the deployers configuration * @param addSysProps a flag defining whether to include the system * properties into the configuration. * @return the configured Configuration instance. */ protected Configuration createDefaultHierarchicalConfiguration (final String staticConfig, final String userConfig, final boolean addSysProps) { return createDefaultHierarchicalConfiguration (staticConfig, userConfig, addSysProps, PropertyFileConfiguration.class); }
globalConfig.insertConfiguration(rootProperty); globalConfig.insertConfiguration( getPackageManager().getPackageConfiguration());
/** * Returns the global configuration as extended configuration. * * @return the extended configuration. */ public synchronized ExtendedConfiguration getExtendedConfig () { if (this.extWrapper == null) { this.extWrapper = new ExtendedConfigurationWrapper(getGlobalConfig()); } return this.extWrapper; } }
/** * Returns the global configuration. * * @return The global configuration. */ public synchronized Configuration getGlobalConfig() { if (this.globalConfig == null) { this.globalConfig = loadConfiguration(); } return this.globalConfig; }
/** * Creates a default configuration setup, which loads its settings from * the static configuration (defaults provided by the developers of the * library) and the user configuration (settings provided by the deployer). * The deployer's settings override the developer's settings. * * If the parameter <code>addSysProps</code> is set to true, the system * properties will be added as third configuration layer. The system * properties configuration allows to override all other settings. * * @param staticConfig the resource name of the developers configuration * @param userConfig the resource name of the deployers configuration * @param addSysProps a flag defining whether to include the system * properties into the configuration. * @return the configured Configuration instance. */ protected Configuration createDefaultHierarchicalConfiguration (final String staticConfig, final String userConfig, final boolean addSysProps) { return createDefaultHierarchicalConfiguration (staticConfig, userConfig, addSysProps, PropertyFileConfiguration.class); }
/** * Returns the global configuration as modifiable configuration reference. * * @return the global configuration */ public static ModifiableConfiguration getConfiguration() { return (ModifiableConfiguration) getInstance().getGlobalConfig(); }
/** * Returns the global configuration as extended configuration. * * @return the extended configuration. */ public synchronized ExtendedConfiguration getExtendedConfig () { if (extWrapper == null) { extWrapper = new ExtendedConfigurationWrapper(getGlobalConfig()); } return extWrapper; } }
/** * Returns the global configuration as extended configuration. * * @return the extended configuration. */ public synchronized ExtendedConfiguration getExtendedConfig () { if (this.extWrapper == null) { this.extWrapper = new ExtendedConfigurationWrapper(getGlobalConfig()); } return this.extWrapper; } }
/** * Returns <code>true</code> if logging is disabled, and <code>false</code> otherwise. * * @return true, if logging is completly disabled, false otherwise. */ public static boolean isDisableLogging() { return BaseBoot.getInstance().getGlobalConfig().getConfigProperty (DISABLE_LOGGING, DISABLE_LOGGING_DEFAULT).equalsIgnoreCase("true"); }
/** * Returns <code>true</code> if logging is disabled, and <code>false</code> otherwise. * * @return true, if logging is completly disabled, false otherwise. */ public static boolean isDisableLogging() { return BaseBoot.getInstance().getGlobalConfig().getConfigProperty (DISABLE_LOGGING, DISABLE_LOGGING_DEFAULT).equalsIgnoreCase("true"); }