You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by ar...@apache.org on 2003/08/13 22:00:06 UTC
cvs commit: db-ojb/src/java/org/apache/ojb/broker/accesslayer IndirectionHandler.java
arminw 2003/08/13 13:00:06
Modified: src/java/org/apache/ojb/broker/accesslayer
IndirectionHandler.java
Log:
imporove logging
add version tag
Revision Changes Path
1.19 +8 -4 db-ojb/src/java/org/apache/ojb/broker/accesslayer/IndirectionHandler.java
Index: IndirectionHandler.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/IndirectionHandler.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- IndirectionHandler.java 30 Jul 2003 21:46:17 -0000 1.18
+++ IndirectionHandler.java 13 Aug 2003 20:00:06 -0000 1.19
@@ -76,9 +76,13 @@
*/
//#endif
+/**
+ *
+ * @version $Id$
+ */
public class IndirectionHandler implements InvocationHandler, Serializable
{
- private Logger log = LoggerFactory.getLogger(this.getClass());
+ private static Logger log = LoggerFactory.getLogger(IndirectionHandler.class);
/**
* reference to the used PersistenceBroker
*/
@@ -102,7 +106,7 @@
TODO: Find a better solution
*/
private boolean needsClose;
-
+
private static final String TO_STRING_METHODNAME = "toString";
/**
@@ -256,7 +260,7 @@
{
subject = getRealSubject();
// handle toString differently for non-materialized proxies
- // to avoid materialization due to logging.
+ // to avoid materialization due to logging.
if ((realSubject == null) && (TO_STRING_METHODNAME.equals(method.getName())))
{
String msg = "unmaterialized proxy for " + getIdentity();
@@ -314,7 +318,7 @@
if (realSubject == null)
{
- LoggerFactory.getDefaultLogger().warn("OJB broker could not materialize " + id.toString());
+ log.warn("Can not materialize object for Identity " + id + " - using PBKey " + brokerKey);
}
afterMaterialization();
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org