|
From: <ls...@us...> - 2008-07-29 18:38:44
|
Revision: 4369
http://jnode.svn.sourceforge.net/jnode/?rev=4369&view=rev
Author: lsantha
Date: 2008-07-29 18:38:38 +0000 (Tue, 29 Jul 2008)
Log Message:
-----------
Improved boot messages.
Modified Paths:
--------------
trunk/core/src/core/org/jnode/plugin/Plugin.java
trunk/core/src/core/org/jnode/plugin/manager/DefaultPluginManager.java
trunk/core/src/core/org/jnode/work/WorkPlugin.java
trunk/core/src/driver/org/jnode/driver/DefaultDeviceManager.java
trunk/core/src/driver/org/jnode/driver/console/spi/AbstractConsoleManager.java
Modified: trunk/core/src/core/org/jnode/plugin/Plugin.java
===================================================================
--- trunk/core/src/core/org/jnode/plugin/Plugin.java 2008-07-29 17:04:56 UTC (rev 4368)
+++ trunk/core/src/core/org/jnode/plugin/Plugin.java 2008-07-29 18:38:38 UTC (rev 4369)
@@ -102,7 +102,7 @@
}
if (!started) {
if (descriptor.hasCustomPluginClass()) {
- BootLog.debug("__Starting " + descriptor.getId());
+ BootLog.debug("Starting plugin: " + descriptor.getId());
}
started = true;
try {
Modified: trunk/core/src/core/org/jnode/plugin/manager/DefaultPluginManager.java
===================================================================
--- trunk/core/src/core/org/jnode/plugin/manager/DefaultPluginManager.java 2008-07-29 17:04:56 UTC (rev 4368)
+++ trunk/core/src/core/org/jnode/plugin/manager/DefaultPluginManager.java 2008-07-29 18:38:38 UTC (rev 4369)
@@ -162,7 +162,6 @@
while (!isStartPluginsFinished() && (now - start < START_TIMEOUT)) {
try {
if (++loop == 10) {
- System.out.print('.');
loop = 0;
}
Thread.sleep(100);
Modified: trunk/core/src/core/org/jnode/work/WorkPlugin.java
===================================================================
--- trunk/core/src/core/org/jnode/work/WorkPlugin.java 2008-07-29 17:04:56 UTC (rev 4368)
+++ trunk/core/src/core/org/jnode/work/WorkPlugin.java 2008-07-29 18:38:38 UTC (rev 4369)
@@ -124,7 +124,6 @@
* @see org.jnode.work.WorkManager#add(org.jnode.work.Work)
*/
public final synchronized void add(Work work) {
- log.debug("#free workers: " + getFreeProcessors());
workCounter++;
queue.add(work);
}
Modified: trunk/core/src/driver/org/jnode/driver/DefaultDeviceManager.java
===================================================================
--- trunk/core/src/driver/org/jnode/driver/DefaultDeviceManager.java 2008-07-29 17:04:56 UTC (rev 4368)
+++ trunk/core/src/driver/org/jnode/driver/DefaultDeviceManager.java 2008-07-29 18:38:38 UTC (rev 4369)
@@ -41,8 +41,7 @@
*
* @author epr
*/
-public final class DefaultDeviceManager extends AbstractDeviceManager
- implements ExtensionPointListener {
+public final class DefaultDeviceManager extends AbstractDeviceManager implements ExtensionPointListener {
/**
* finder extension-point
@@ -162,8 +161,6 @@
* @param element
*/
private void configureFinder(List<DeviceFinder> finders, ConfigurationElement element) {
- BootLog.debug("Configure finder: " + element);
-
final String elementName = element.getName();
if (!elementName.equals("finder")) {
BootLog.warn("Ignoring unrecognised descriptor element: " + elementName);
@@ -173,8 +170,8 @@
final String className = element.getAttribute("class");
if (className != null) {
try {
- final Class cls = Thread.currentThread()
- .getContextClassLoader().loadClass(className);
+ BootLog.debug("Configuring finder: " + className);
+ final Class cls = Thread.currentThread().getContextClassLoader().loadClass(className);
final DeviceFinder finder = (DeviceFinder) cls.newInstance();
finders.add(finder);
} catch (ClassNotFoundException ex) {
@@ -184,8 +181,7 @@
} catch (InstantiationException ex) {
BootLog.error("Cannot instantiate finder class " + className);
} catch (ClassCastException ex) {
- BootLog.error("Finder class " + className
- + " does not implement the DeviceFinder interface");
+ BootLog.error("Finder class " + className + " does not implement the DeviceFinder interface");
}
}
}
@@ -198,8 +194,6 @@
* @param element
*/
private void configureMapper(List<DeviceToDriverMapper> mappers, ConfigurationElement element) {
- BootLog.debug("Configure mapper: " + element);
-
final String elementName = element.getName();
if (!elementName.equals("mapper")) {
BootLog.warn("Ignoring unrecognised descriptor element: " + elementName);
@@ -209,8 +203,8 @@
final String className = element.getAttribute("class");
if (className != null) {
try {
- final Class cls = Thread.currentThread()
- .getContextClassLoader().loadClass(className);
+ BootLog.debug("Configuring mapper: " + className);
+ final Class cls = Thread.currentThread().getContextClassLoader().loadClass(className);
final DeviceToDriverMapper mapper = newMapperInstance(cls, element);
mappers.add(mapper);
} catch (ClassNotFoundException ex) {
@@ -220,10 +214,7 @@
} catch (InstantiationException ex) {
BootLog.error("Cannot instantiate mapper class " + className, ex);
} catch (ClassCastException ex) {
- BootLog
- .error("Mapper class "
- + className
- + " does not implement the DeviceToDriverMapper interface");
+ BootLog.error("Mapper class " + className + " does not implement the DeviceToDriverMapper interface");
}
} else {
BootLog.error("class attribute required in mapper");
Modified: trunk/core/src/driver/org/jnode/driver/console/spi/AbstractConsoleManager.java
===================================================================
--- trunk/core/src/driver/org/jnode/driver/console/spi/AbstractConsoleManager.java 2008-07-29 17:04:56 UTC (rev 4368)
+++ trunk/core/src/driver/org/jnode/driver/console/spi/AbstractConsoleManager.java 2008-07-29 18:38:38 UTC (rev 4369)
@@ -207,14 +207,11 @@
* @param console
*/
public synchronized void focus(Console console) {
- log.debug("focus(" + console.getConsoleName() + ")");
if (this.current != null && this.current != console) {
- log.debug("Sending focusLost to " + current.getConsoleName());
this.current.focusLost(new FocusEvent(FocusEvent.FOCUS_LOST));
}
this.current = console;
if (this.current != null) {
- log.debug("Sending focusGained to " + current.getConsoleName());
current.focusGained(new FocusEvent(FocusEvent.FOCUS_GAINED));
}
}
@@ -338,7 +335,6 @@
}
public void registerConsole(Console console) {
- log.debug("registerConsole(" + console.getConsoleName() + ")");
consoles.put(console.getConsoleName(), console);
if (current == null) {
current = console;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|