cgl.util
Class BootStrap

java.lang.Object
  extended bycgl.util.BootStrap

public class BootStrap
extends java.lang.Object

Holds methods for property file handling.

Community Grids Java Source Package

Provides supporting classess for portal environments.

Copyright (c) 2001-2002 Pervasive Technology Labs

$Id$

Version:
0.0.1
Author:
Ozgur Balsoy

Constructor Summary
BootStrap()
           
 
Method Summary
static java.util.Properties loadProperties(java.lang.String fileName)
          Returns the named file as a Property object.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BootStrap

public BootStrap()
Method Detail

loadProperties

public static java.util.Properties loadProperties(java.lang.String fileName)
                                           throws java.lang.Exception
Returns the named file as a Property object.

Parameters:
fileName - name of the file. Either full, or relative to the current path, or must exist in the classpath or a JAR file.
Returns:
properties
Throws:
java.lang.NullPointerException - if file name is null.
java.lang.Exception - if file cannot be found or any other IO errors occur.

main

public static void main(java.lang.String[] args)