001 /** 002 * ================================================ 003 * LibLoader : a free Java resource loading library 004 * ================================================ 005 * 006 * Project Info: http://reporting.pentaho.org/libloader/ 007 * 008 * (C) Copyright 2006, by Pentaho Corporation and Contributors. 009 * 010 * This library is free software; you can redistribute it and/or modify it under the terms 011 * of the GNU Lesser General Public License as published by the Free Software Foundation; 012 * either version 2.1 of the License, or (at your option) any later version. 013 * 014 * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 015 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 016 * See the GNU Lesser General Public License for more details. 017 * 018 * You should have received a copy of the GNU Lesser General Public License along with this 019 * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, 020 * Boston, MA 02111-1307, USA. 021 * 022 * [Java is a trademark or registered trademark of Sun Microsystems, Inc. 023 * in the United States and other countries.] 024 * 025 * 026 * ------------ 027 * $Id: LibLoaderInfo.java 3529 2007-10-16 13:25:01Z tmorgner $ 028 * ------------ 029 * (C) Copyright 2006, by Pentaho Corporation. 030 */ 031 032 package org.jfree.resourceloader; 033 034 import java.util.Arrays; 035 036 import org.jfree.JCommon; 037 import org.jfree.base.Library; 038 import org.jfree.ui.about.Contributor; 039 import org.jfree.ui.about.ProjectInfo; 040 import org.jfree.ui.about.Licences; 041 042 public class LibLoaderInfo extends ProjectInfo 043 { 044 private static LibLoaderInfo instance; 045 046 public static LibLoaderInfo getInstance () 047 { 048 if (instance == null) 049 { 050 instance = new LibLoaderInfo(); 051 } 052 return instance; 053 } 054 055 /** 056 * Constructs an empty project info object. 057 */ 058 public LibLoaderInfo () 059 { 060 setName("LibLoader"); 061 setVersion("0.3.7"); 062 063 setLicenceName("LGPL"); 064 setLicenceText(Licences.getInstance().getLGPL()); 065 066 setInfo("http://reporting.pentaho.org/libloader/"); 067 setCopyright ("(C)opyright 2006,2007, by Pentaho Corporation and Contributors"); 068 setLicenceText(Licences.getInstance().getLGPL()); 069 070 setContributors(Arrays.asList(new Contributor[] 071 { 072 new Contributor("Thomas Morgner", "taqua@users.sourceforge.net"), 073 new Contributor("Matt Casters", "mattcasters@users.sourceforge.net"), 074 })); 075 076 077 setBootClass(LibLoaderBoot.class.getName()); 078 setAutoBoot(true); 079 080 addLibrary(JCommon.INFO); 081 addOptionalLibrary("org.jfree.pixie.PixieInfo"); 082 addOptionalLibrary( 083 new Library( 084 "OSCache", "2.3", "The OpenSymphony Software License", 085 "http://www.opensymphony.com/oscache/license.action" 086 ) 087 ); 088 addOptionalLibrary( 089 new Library( 090 "EHCache", "1.2rc1", "Apache Licence 2.0", 091 "http://ehcache.sourceforge.net/" 092 ) 093 ); 094 095 } 096 }