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,v 1.3 2006/05/06 13:00:49 taqua Exp $
  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:       if (singleton == null) {
  69:           singleton = new JCommonSerializerInfo();
  70:       }
  71:       return singleton;
  72:   }
  73: 
  74: 
  75:   /**
  76:    * Constructs an empty project info object.
  77:    */
  78:   private JCommonSerializerInfo() {
  79:       final JCommonInfo info = JCommonInfo.getInstance();
  80: 
  81:       setName("JCommon-Serializer");
  82:       setVersion("0.1.0");
  83:       setInfo("http://www.jfree.org/jfreereport/jcommon-serializer/");
  84:       setCopyright ("(C)opyright 2006, by Pentaho Corporation, Object Refinery Limited and Contributors");
  85: 
  86:       setLicenceName(info.getLicenceName());
  87:       setLicenceText(info.getLicenceText());
  88: 
  89:       setContributors(Arrays.asList(new Contributor[]{
  90:           new Contributor("David Gilbert", "david.gilbert@object-refinery.com"),
  91:           new Contributor("Thomas Morgner", "tmorgner@pentaho.org"),
  92:       }));
  93:   }
  94: 
  95: }