Source for org.jfree.serializer.JCommonSerializerInfo

   1: /**
   2:  * ===================================================
   3:  * JCommon-Serializer : a free serialization framework
   4:  * ===================================================
   5:  *
   6:  * Project Info:  http://www.jfree.org/jfreereport/jcommon-serializer/
   7:  * Project Lead:  Thomas Morgner;
   8:  *
   9:  * (C) Copyright 2006, by Object Refinery Limited and Pentaho Corporation.
  10:  *
  11:  * This library is free software; you can redistribute it and/or modify it under the terms
  12:  * of the GNU Lesser General Public License as published by the Free Software Foundation;
  13:  * either version 2.1 of the License, or (at your option) any later version.
  14:  *
  15:  * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  16:  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  17:  * See the GNU Lesser General Public License for more details.
  18:  *
  19:  * You should have received a copy of the GNU Lesser General Public License along with this
  20:  * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  21:  * Boston, MA 02111-1307, USA.
  22:  *
  23:  * [Java is a trademark or registered trademark of Sun Microsystems, Inc.
  24:  * in the United States and other countries.]
  25:  *
  26:  * ------------
  27:  * JCommonSerializerInfo.java
  28:  * ------------
  29:  * (C) Copyright 2006, by Object Refinery Limited and Pentaho Corporation.
  30:  *
  31:  * Original Author:  Thomas Morgner;
  32:  * Contributor(s):   -;
  33:  *
  34:  * $Id: JCommonSerializerInfo.java 3093 2007-08-01 19:34:59Z tmorgner $
  35:  *
  36:  * Changes
  37:  * -------
  38:  *
  39:  *
  40:  */
  41: 
  42: package org.jfree.serializer;
  43: 
  44: import java.util.Arrays;
  45: 
  46: import org.jfree.ui.about.ProjectInfo;
  47: import org.jfree.ui.about.Contributor;
  48: import org.jfree.JCommonInfo;
  49: 
  50: /**
  51:  * Creation-Date: 23.10.2005, 18:49:39
  52:  *
  53:  * @author Thomas Morgner
  54:  */
  55: public class JCommonSerializerInfo extends ProjectInfo
  56: {
  57:   /**
  58:    * The info singleton.
  59:    */
  60:   private static JCommonSerializerInfo singleton;
  61: 
  62:   /**
  63:    * Returns the single instance of this class.
  64:    *
  65:    * @return The single instance of information about the JCommon library.
  66:    */
  67:   public static synchronized JCommonSerializerInfo getInstance()
  68:   {
  69:     if (singleton == null)
  70:     {
  71:       singleton = new JCommonSerializerInfo();
  72:     }
  73:     return singleton;
  74:   }
  75: 
  76: 
  77:   /**
  78:    * Constructs an empty project info object.
  79:    */
  80:   private JCommonSerializerInfo()
  81:   {
  82:     final JCommonInfo info = JCommonInfo.getInstance();
  83: 
  84:     setName("JCommon-Serializer");
  85:     setVersion("0.2.0");
  86:     setInfo("http://reporting.pentaho.org/jcommon-serializer/");
  87:     setCopyright("(C)opyright 2006-2007, by Pentaho Corporation, Object Refinery Limited and Contributors");
  88: 
  89:     setLicenceName(info.getLicenceName());
  90:     setLicenceText(info.getLicenceText());
  91: 
  92:     setContributors(Arrays.asList(new Contributor[]{
  93:         new Contributor("David Gilbert", "david.gilbert@object-refinery.com"),
  94:         new Contributor("Thomas Morgner", "tmorgner@pentaho.org"),
  95:     }));
  96: 
  97:     setBootClass(JCommonSerializerBoot.class.getName());
  98:   }
  99: 
 100: }