Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 package pt.webdetails.cda;
 
 import  org.pentaho.reporting.libraries.base.boot.AbstractBoot;
 import  org.pentaho.reporting.libraries.base.config.Configuration;
 import  org.pentaho.reporting.libraries.base.versioning.ProjectInformation;

Todo: Document me!

Date: 09.02.2010 Time: 17:51:22

Author(s):
Thomas Morgner.
public class CdaBoot extends AbstractBoot
{

  
The singleton instance of the Boot class.
  private static CdaBoot instance;
  
The project info contains all meta data about the project.
  private ProjectInformation projectInfo;
  protected CdaBoot()
  {
     = CdaInfo.getInstance();
  }


  
Returns the singleton instance of the boot utility class.

Returns:
the boot instance.
  public static synchronized CdaBoot getInstance()
  {
    if ( == null)
    {
       = new CdaBoot();
    }
    return ;
  }


  
Loads the configuration. This will be called exactly once.

Returns:
The configuration.
  protected Configuration loadConfiguration()
  {
    return createDefaultHierarchicalConfiguration("/pt/webdetails/cda/cda.properties",
            "/cda.properties"trueCdaBoot.class);
  }


  
Performs the boot.
  protected void performBoot()
  {
    // any manual init work goes in here ...
  }


  
Returns the project info.

Returns:
The project info.
  protected ProjectInformation getProjectInfo()
  {
    return ;
  }
New to GrepCode? Check out our FAQ X