[Yanel-commits] rev 40632 -
public/yanel/trunk/src/core/java/org/wyona/yanel/core/util
michi at wyona.com
michi at wyona.com
Tue Dec 23 14:16:29 CET 2008
Author: michi
Date: 2008-12-23 14:16:28 +0100 (Tue, 23 Dec 2008)
New Revision: 40632
Modified:
public/yanel/trunk/src/core/java/org/wyona/yanel/core/util/ResourceAttributeHelper.java
Log:
javadoc added and log statements improved
Modified: public/yanel/trunk/src/core/java/org/wyona/yanel/core/util/ResourceAttributeHelper.java
===================================================================
--- public/yanel/trunk/src/core/java/org/wyona/yanel/core/util/ResourceAttributeHelper.java 2008-12-23 13:11:45 UTC (rev 40631)
+++ public/yanel/trunk/src/core/java/org/wyona/yanel/core/util/ResourceAttributeHelper.java 2008-12-23 13:16:28 UTC (rev 40632)
@@ -28,7 +28,7 @@
private static Category log = Category.getInstance(ResourceAttributeHelper.class);
/**
- *
+ * Check if a resource has a specific interface with a specific version implemented or not
*/
static public boolean hasAttributeImplemented(Resource res, String attribute, String version) {
boolean implemented = false;
@@ -48,9 +48,9 @@
clazz = clazz.getSuperclass();
}
if (implemented) {
- log.info(res.getClass().getName() + " does implement " + attribute + "V" + version + " interface!");
+ if (log.isDebugEnabled()) log.debug(res.getClass().getName() + " does implement " + attribute + "V" + version + " interface!");
} else {
- log.info(res.getClass().getName() + " does NOT implement " + attribute + "V" + version + " interface!");
+ if (log.isDebugEnabled()) log.debug(res.getClass().getName() + " does NOT implement " + attribute + "V" + version + " interface!");
}
return implemented;
}
More information about the Yanel-commits
mailing list