KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > soto > config > types > IntType


1 package org.sapia.soto.config.types;
2
3 import org.sapia.util.xml.confix.ConfigurationException;
4 import org.sapia.util.xml.confix.ObjectCreationCallback;
5
6 /**
7  * @author Yanick Duchesne
8  *
9  * <dl>
10  * <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>
11  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
12  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
13  * </dl>
14  */

15 public class IntType implements ObjectCreationCallback{
16     
17     private int _value;
18     
19     public void setValue(int value){
20         _value = value;
21     }
22     
23     /**
24    * @see org.sapia.util.xml.confix.ObjectCreationCallback#onCreate()
25    */

26   public Object JavaDoc onCreate() throws ConfigurationException {
27     return new Integer JavaDoc(_value);
28   }
29
30     
31
32 }
33
Popular Tags