jmcnally 02/04/26 12:22:32
Modified: src/java/org/apache/torque/om BaseObject.java
Log:
create a logger method that will not conflict with a getter.
deprecated the getCategory version.
Revision Changes Path
1.8 +12 -1
jakarta-turbine-torque/src/java/org/apache/torque/om/BaseObject.java
Index: BaseObject.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/om/BaseObject.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- BaseObject.java 19 Dec 2001 18:41:17 -0000 1.7
+++ BaseObject.java 26 Apr 2002 19:22:32 -0000 1.8
@@ -65,7 +65,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Frank Y. Kim</a>
* @author <a href="mailto:[EMAIL PROTECTED]">John D. McNally</a>
- * @version $Id: BaseObject.java,v 1.7 2001/12/19 18:41:17 jmcnally Exp $
+ * @version $Id: BaseObject.java,v 1.8 2002/04/26 19:22:32 jmcnally Exp $
*/
public abstract class BaseObject implements Persistent, Serializable
{
@@ -414,8 +414,19 @@
* gets a log4j Category based on class name.
*
* @return a <code>Category</code> to write log to.
+ * @deprecated use log()
*/
protected Category getCategory()
+ {
+ return Category.getInstance(getClass().getName());
+ }
+
+ /**
+ * gets a log4j Category based on class name.
+ *
+ * @return a <code>Category</code> to write log to.
+ */
+ protected Category log()
{
return Category.getInstance(getClass().getName());
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>