ca.uhn.hl7v2.util
Class Home

java.lang.Object
  extended by ca.uhn.hl7v2.util.Home

public class Home
extends java.lang.Object

Used to access the hapi.home system property. Note that the property is only checked (at most) once per session.

Author:
Bryan Tripp

Constructor Summary
Home()
          Creates a new instance of Home
 
Method Summary
static java.io.File getHomeDirectory()
          Returns a File object corresponding to the directory specified in the system property hapi.home.
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

Home

public Home()
Creates a new instance of Home

Method Detail

getHomeDirectory

public static java.io.File getHomeDirectory()
Returns a File object corresponding to the directory specified in the system property hapi.home. The property is only checked the first time this method is called, so changes will not take place until a new VM is started. This method is guaranteed to return a directory. If hapi.home is not set, or is set to a non-directory path, the current directory will be used.


main

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


Copyright © 2001-2011 University Health Network. All Rights Reserved.