Frames | No Frames |
1: /** 2: * ================================================ 3: * LibLoader : a free Java resource loading library 4: * ================================================ 5: * 6: * Project Info: http://reporting.pentaho.org/libloader/ 7: * 8: * (C) Copyright 2006, by Pentaho Corporation and Contributors. 9: * 10: * This library is free software; you can redistribute it and/or modify it under the terms 11: * of the GNU Lesser General Public License as published by the Free Software Foundation; 12: * either version 2.1 of the License, or (at your option) any later version. 13: * 14: * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 15: * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 16: * See the GNU Lesser General Public License for more details. 17: * 18: * You should have received a copy of the GNU Lesser General Public License along with this 19: * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, 20: * Boston, MA 02111-1307, USA. 21: * 22: * [Java is a trademark or registered trademark of Sun Microsystems, Inc. 23: * in the United States and other countries.] 24: * 25: * 26: * ------------ 27: * $Id: LibLoaderInfo.java,v 1.15 2007/04/27 11:22:14 taqua Exp $ 28: * ------------ 29: * (C) Copyright 2006, by Pentaho Corporation. 30: */ 31: 32: package org.jfree.resourceloader; 33: 34: import java.util.Arrays; 35: 36: import org.jfree.JCommon; 37: import org.jfree.base.Library; 38: import org.jfree.ui.about.Contributor; 39: import org.jfree.ui.about.ProjectInfo; 40: import org.jfree.ui.about.Licences; 41: 42: public class LibLoaderInfo extends ProjectInfo 43: { 44: private static LibLoaderInfo instance; 45: 46: public static LibLoaderInfo getInstance () 47: { 48: if (instance == null) 49: { 50: instance = new LibLoaderInfo(); 51: } 52: return instance; 53: } 54: 55: /** 56: * Constructs an empty project info object. 57: */ 58: public LibLoaderInfo () 59: { 60: setName("LibLoader"); 61: setVersion("0.3.3"); 62: 63: setLicenceName("LGPL"); 64: setLicenceText(Licences.getInstance().getLGPL()); 65: 66: setInfo("http://reporting.pentaho.org/libloader/"); 67: setCopyright ("(C)opyright 2006,2007, by Pentaho Corporation and Contributors"); 68: setLicenceText(Licences.getInstance().getLGPL()); 69: 70: setContributors(Arrays.asList(new Contributor[] 71: { 72: new Contributor("Thomas Morgner", "taqua@users.sourceforge.net"), 73: new Contributor("Matt Casters", "mattcasters@users.sourceforge.net"), 74: })); 75: 76: 77: setBootClass(LibLoaderBoot.class.getName()); 78: setAutoBoot(true); 79: 80: addLibrary(JCommon.INFO); 81: addOptionalLibrary("org.jfree.pixie.PixieInfo"); 82: addOptionalLibrary( 83: new Library( 84: "OSCache", "2.3", "The OpenSymphony Software License", 85: "http://www.opensymphony.com/oscache/license.action" 86: ) 87: ); 88: addOptionalLibrary( 89: new Library( 90: "EHCache", "1.2rc1", "Apache Licence 2.0", 91: "http://ehcache.sourceforge.net/" 92: ) 93: ); 94: 95: } 96: }