void setDebugOptions() { DebugOptions options = getAdaptor().getDebugOptions(); debugStartLevel = options == null ? false : options.getBooleanOption(Debug.OPTION_DEBUG_STARTLEVEL, false); }
void setDebugOptions() { DebugOptions options = getAdaptor().getDebugOptions(); debugStartLevel = options == null ? false : options.getBooleanOption(Debug.OPTION_DEBUG_STARTLEVEL, false); }
void setDebugOptions() { DebugOptions options = getAdaptor().getDebugOptions(); debugStartLevel = options == null ? false : options.getBooleanOption(Debug.OPTION_DEBUG_STARTLEVEL, false); }
void setDebugOptions() { DebugOptions options = getAdaptor().getDebugOptions(); debugStartLevel = options == null ? false : options.getBooleanOption(Debug.OPTION_DEBUG_STARTLEVEL, false); }
void setDebugOptions() { DebugOptions options = getAdaptor().getDebugOptions(); debugStartLevel = options == null ? false : options.getBooleanOption(Debug.OPTION_DEBUG_STARTLEVEL, false); }
void setDebugOptions() { DebugOptions options = getAdaptor().getDebugOptions(); debugStartLevel = options == null ? false : options.getBooleanOption(Debug.OPTION_DEBUG_STARTLEVEL, false); }
DebugOptions debugOptions = adaptor.getDebugOptions(); if (debugOptions != null) { this.DEBUG_MONITOR_LAZY = debugOptions.getBooleanOption(Debug.OPTION_MONITOR_LAZY, false);
DebugOptions debugOptions = adaptor.getDebugOptions(); if (debugOptions != null) { this.DEBUG_MONITOR_LAZY = debugOptions.getBooleanOption(Debug.OPTION_MONITOR_LAZY, false);
DebugOptions debugOptions = adaptor.getDebugOptions(); if (debugOptions != null) { this.DEBUG_MONITOR_LAZY = debugOptions.getBooleanOption(Debug.OPTION_MONITOR_LAZY, false);
DebugOptions debugOptions = adaptor.getDebugOptions(); if (debugOptions != null) { this.DEBUG_MONITOR_LAZY = debugOptions.getBooleanOption(Debug.OPTION_MONITOR_LAZY, false);
/** * Constructs a new container with the specified adaptor, module database. * @param adaptor the adaptor for the container * @param moduledataBase the module database */ public ModuleContainer(ModuleContainerAdaptor adaptor, ModuleDatabase moduledataBase) { this.adaptor = adaptor; this.moduleResolver = new ModuleResolver(adaptor); this.moduleDatabase = moduledataBase; this.frameworkWiring = new ContainerWiring(); this.frameworkStartLevel = new ContainerStartLevel(); long tempModuleLockTimeout = 5; String moduleLockTimeoutProp = adaptor.getProperty(EquinoxConfiguration.PROP_MODULE_LOCK_TIMEOUT); if (moduleLockTimeoutProp != null) { try { tempModuleLockTimeout = Long.parseLong(moduleLockTimeoutProp); // don't do anything less than one second if (tempModuleLockTimeout < 1) { tempModuleLockTimeout = 1; } } catch (NumberFormatException e) { // will default to 5 } } this.moduleLockTimeout = tempModuleLockTimeout; DebugOptions debugOptions = adaptor.getDebugOptions(); if (debugOptions != null) { this.DEBUG_MONITOR_LAZY = debugOptions.getBooleanOption(Debug.OPTION_MONITOR_LAZY, false); } }
/** * Constructs a new container with the specified adaptor, module database. * @param adaptor the adaptor for the container * @param moduledataBase the module database */ public ModuleContainer(ModuleContainerAdaptor adaptor, ModuleDatabase moduledataBase) { this.adaptor = adaptor; this.moduleResolver = new ModuleResolver(adaptor); this.moduleDatabase = moduledataBase; this.frameworkWiring = new ContainerWiring(); this.frameworkStartLevel = new ContainerStartLevel(); long tempModuleLockTimeout = 5; String moduleLockTimeoutProp = adaptor.getProperty(EquinoxConfiguration.PROP_MODULE_LOCK_TIMEOUT); if (moduleLockTimeoutProp != null) { try { tempModuleLockTimeout = Long.parseLong(moduleLockTimeoutProp); // don't do anything less than one second if (tempModuleLockTimeout < 1) { tempModuleLockTimeout = 1; } } catch (NumberFormatException e) { // will default to 5 } } this.moduleLockTimeout = tempModuleLockTimeout; DebugOptions debugOptions = adaptor.getDebugOptions(); if (debugOptions != null) { this.DEBUG_MONITOR_LAZY = debugOptions.getBooleanOption(Debug.OPTION_MONITOR_LAZY, false); } }
void setDebugOptions() { DebugOptions options = adaptor.getDebugOptions(); // may be null if debugging is not enabled if (options == null) return; boolean debugAll = options.getBooleanOption(OPTION_RESOLVER, false); DEBUG_ROOTS = debugAll || options.getBooleanOption(OPTION_ROOTS, false); DEBUG_PROVIDERS = debugAll || options.getBooleanOption(OPTION_PROVIDERS, false); DEBUG_HOOKS = debugAll || options.getBooleanOption(OPTION_HOOKS, false); DEBUG_USES = debugAll || options.getBooleanOption(OPTION_USES, false); DEBUG_WIRING = debugAll || options.getBooleanOption(OPTION_WIRING, false); DEBUG_REPORT = debugAll || options.getBooleanOption(OPTION_REPORT, false); }
void setDebugOptions() { DebugOptions options = adaptor.getDebugOptions(); // may be null if debugging is not enabled if (options == null) return; boolean debugAll = options.getBooleanOption(OPTION_RESOLVER, false); DEBUG_ROOTS = debugAll || options.getBooleanOption(OPTION_ROOTS, false); DEBUG_PROVIDERS = debugAll || options.getBooleanOption(OPTION_PROVIDERS, false); DEBUG_HOOKS = debugAll || options.getBooleanOption(OPTION_HOOKS, false); DEBUG_USES = debugAll || options.getBooleanOption(OPTION_USES, false); DEBUG_WIRING = debugAll || options.getBooleanOption(OPTION_WIRING, false); DEBUG_REPORT = debugAll || options.getBooleanOption(OPTION_REPORT, false); }
void setDebugOptions() { DebugOptions options = adaptor.getDebugOptions(); // may be null if debugging is not enabled if (options == null) return; boolean debugAll = options.getBooleanOption(OPTION_RESOLVER, false); DEBUG_ROOTS = debugAll || options.getBooleanOption(OPTION_ROOTS, false); DEBUG_PROVIDERS = debugAll || options.getBooleanOption(OPTION_PROVIDERS, false); DEBUG_HOOKS = debugAll || options.getBooleanOption(OPTION_HOOKS, false); DEBUG_USES = debugAll || options.getBooleanOption(OPTION_USES, false); DEBUG_WIRING = debugAll || options.getBooleanOption(OPTION_WIRING, false); DEBUG_REPORT = debugAll || options.getBooleanOption(OPTION_REPORT, false); }
void setDebugOptions() { DebugOptions options = adaptor.getDebugOptions(); // may be null if debugging is not enabled if (options == null) return; boolean debugAll = options.getBooleanOption(OPTION_RESOLVER, false); DEBUG_ROOTS = debugAll || options.getBooleanOption(OPTION_ROOTS, false); DEBUG_PROVIDERS = debugAll || options.getBooleanOption(OPTION_PROVIDERS, false); DEBUG_HOOKS = debugAll || options.getBooleanOption(OPTION_HOOKS, false); DEBUG_USES = debugAll || options.getBooleanOption(OPTION_USES, false); DEBUG_WIRING = debugAll || options.getBooleanOption(OPTION_WIRING, false); DEBUG_REPORT = debugAll || options.getBooleanOption(OPTION_REPORT, false); }
void setDebugOptions() { DebugOptions options = adaptor.getDebugOptions(); // may be null if debugging is not enabled if (options == null) return; boolean debugAll = options.getBooleanOption(OPTION_RESOLVER, false); DEBUG_ROOTS = debugAll || options.getBooleanOption(OPTION_ROOTS, false); DEBUG_PROVIDERS = debugAll || options.getBooleanOption(OPTION_PROVIDERS, false); DEBUG_HOOKS = debugAll || options.getBooleanOption(OPTION_HOOKS, false); DEBUG_USES = debugAll || options.getBooleanOption(OPTION_USES, false); DEBUG_WIRING = debugAll || options.getBooleanOption(OPTION_WIRING, false); DEBUG_REPORT = debugAll || options.getBooleanOption(OPTION_REPORT, false); }
void setDebugOptions() { DebugOptions options = adaptor.getDebugOptions(); // may be null if debugging is not enabled if (options == null) return; boolean debugAll = options.getBooleanOption(OPTION_RESOLVER, false); DEBUG_ROOTS = debugAll || options.getBooleanOption(OPTION_ROOTS, false); DEBUG_PROVIDERS = debugAll || options.getBooleanOption(OPTION_PROVIDERS, false); DEBUG_HOOKS = debugAll || options.getBooleanOption(OPTION_HOOKS, false); DEBUG_USES = debugAll || options.getBooleanOption(OPTION_USES, false); DEBUG_WIRING = debugAll || options.getBooleanOption(OPTION_WIRING, false); DEBUG_REPORT = debugAll || options.getBooleanOption(OPTION_REPORT, false); }