KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > soto > config > Debug


1 package org.sapia.soto.config;
2
3 import org.sapia.util.xml.confix.ConfigurationException;
4 import org.sapia.util.xml.confix.ObjectCreationCallback;
5
6
7 /**
8  * @author Yanick Duchesne
9  *
10  * <dl>
11  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2004 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
12  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
13  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
14  * </dl>
15  */

16 public class Debug implements ObjectCreationCallback {
17   private String JavaDoc _msg;
18
19   public void setMsg(String JavaDoc msg) {
20     _msg = msg;
21   }
22
23   /**
24    * @see org.sapia.util.xml.confix.ObjectCreationCallback#onCreate()
25    */

26   public Object JavaDoc onCreate() throws ConfigurationException {
27     if ((_msg != null) && org.sapia.soto.Debug.DEBUG) {
28       org.sapia.soto.Debug.debug(_msg);
29     }
30
31     return new NullObjectImpl();
32   }
33 }
34
Popular Tags